• Resolved Chris

    (@seepops)


    Hi Yoan, I have a problem with the text editor used to add activity information. It seems to be stripping out some html tags (e.g. <p> <br/>) on saving. If it does manage to save them, editing the activity removes them again.

    Using the same text editor, adding a link via the button doesn’t allow you to enter the url.
    Just wondering if anyone else is experiencing the same problem. All plugins are up to date.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author yoancutillas

    (@yoancutillas)

    Hello Chris,

    The “activity information” field is part of the Display Pack add-on and cannot be discussed on www.ads-software.com forums, but you can contact me by email at [email protected].

    However, this field uses WordPress core tinyMCE editor and is sanitized with wp_kses_post. So I can give some general advices here:

    TinyMCE doesn’t keep your HTML code in “Visual” mode. So always use the “Text” tab, and make sure that the “Text” tab is active when you save data.

    wp_kses_post strips some HTML tags. <p> and <br/> are not part of them, but plugins and themes can alter the list of stipped tags. Deactivate all your plugins and activate Twenty Seventeen instead of your theme, and try again.

    The “insert / edit link” button doesn’t work when tinyMCE is displayed in a dialog for some reason. Always use the “text” tab and insert / edit your link with a HTML code. For example: <a href="https://google.com" target="_blank">My link to google</a>.

    Thread Starter Chris

    (@seepops)

    Hey Yoan,

    Thanks for the tips. I will use these in future and I couldn’t remember if this was a display only function but will use the correct channels from now on.

    Thanks for your help.

    Chris

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Html stripped out of activity information’ is closed to new replies.