dazmania Posted January 28, 2015 Share Posted January 28, 2015 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 More sharing options...
durangodave Posted January 29, 2015 Share Posted January 29, 2015 have you tried html_entity_decode Link to comment Share on other sites More sharing options...
dazmania Posted January 29, 2015 Author Share Posted January 29, 2015 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now