Jump to content

Prevent html tags changing from intended < to <


dazmania

Recommended Posts

Hi,

 

I'm still knocking up my PS module, modifying the AdminOrders controller to insert an additional column into the Orders table.

 

I execute my sql query can concat some html tags (<br>) which are then promptly changed to <br>

Is there anyway to prevent this from happening ?

 

Many thanks,

Darren

Link to comment
Share on other sites

Hi Durangodave,

 

Thanks for replying.

On your suggestion ( I'm more perl than php ) I tried html_entity_decode but it did not give the desired result. Here is the context of where I'm using it:

 

                $this->fields_list = array(
                        'id_order' => array(
                                'title' => $this->l('XID'),
                                'align' => 'text-center',
                                'class' => 'fixed-width-xs'
                        ),
                        'reference' => array(
                                'title' => $this->l('XReference')
                        ),
                        'new' => array(
                                'title' => $this->l('XNew client'),
                                'align' => 'text-center',
                                'type' => 'bool',
                                'tmpTableFilter' => true,
                                'orderby' => false
                        ),
                        'customer' => array(
                                'title' => $this->l('XCustomer'),
                                'havingFilter' => true,
                        ),
                        'products' => array(
                                'title'=> html_entity_decode($this->l('products'))
                        ),
                );
 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...