Tuesday, June 27, 2017

Login

Don't have an account yet? Register now!

Create an account

Fields marked with an asterisk (*) are required.

uday
uday
Offline
0
I have used type editior in form.xml file in my own component and also used filter type="safehtml",but it couldn't save html style attribute.
Any help will be appreciated
Responses (2)
  • Accepted Answer

    jguru
    jguru
    Offline
    Tuesday, September 23 2014, 11:57 AM - #permalink
    0
    Use below code at time of save your field


    htmlspecialchars("your post field name",ENT_COMPAT, 'UTF-8');



    Use below code at time of display your field


    htmlspecialchars_decode("your field name",ENT_COMPAT);
    The reply is currently minimized Show
  • Accepted Answer

    uday
    uday
    Offline
    Tuesday, September 23 2014, 12:04 PM - #permalink
    0
    Thanx Its done... :D
    The reply is currently minimized Show
Your Reply