Jump to content

HTML through forms


eleven0

Recommended Posts

The vars are cleaned to prevent attacks. If you would like to display the stuff back to html use this

 

if (!function_exists("htmlspecialchars_decode")) {

function htmlspecialchars_decode($string, $quote_style = ENT_COMPAT) {

return strtr($string, array_flip(get_html_translation_table(HTML_SPECIALCHARS, $quote_style)));

}

}

 

then decode your var ex:

echo htmlspecialchars_decode($my_html);

Link to comment
https://forums.phpfreaks.com/topic/92538-html-through-forms/#findComment-474166
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.