I have following html for a wordpress custom plugin which is loaded to a wordpress editor
<div class="container-fluid">
<div class="outer">
<div class="job_details">
But when its saved to a database its changes as follows
<div class=\"container-fluid\">
<div class=\"outer\">
<div class=\"job_details\">
because of this slashes css styles are not getting reflecting. How to remove this slashes?. Please help
Try this:
stripslashes_deep. <?php wp_editor( stripslashes($content), $editor-id ); ?>
Please try wp_kses_stripslashes
function. This function changes the character sequence \\"
to just "
.
<?php wp_kses_stripslashes( $string ) ?>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.