how to store html in wp_options
-
I have a plugin that a user can specify some html code in the options page to be added to the output of the plugin. if the content is using double quotes then all is fine but if the html contains single and double quotes then things can go a bit screwy.
what is the best way to store html in wp_options and have it come back as it was entered?
ie. user submits the options page and it has a textarea with
<br /><a class='myclass' href="https://blahblah.com">Some "quoted" text and apostrophe's</a>
how to store that without errors and be able to echo it out to the page to be displayed as html to be rendered by the browser?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘how to store html in wp_options’ is closed to new replies.