this may seem like a simple problem but I couldn't find it in the archives.
how does one reverse the effects of htmlspecialchars?
I tried something like this:
$trans_tbl = get_html_translation_table (HTML_ENTITIES);
$trans_tbl = array_flip ($trans_tbl);
$html = strtr ($html, $trans_tbl);
but it didn't work. is there a simple way to do this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…