PEAK XOOPS - Re: Re: get_html_translation_table()の罠 in englishin japanese

Re: Re: get_html_translation_table()の罠

Target News
Subject get_html_translation_table()の罠
Summary get_html_translation_table()の罠最近、unhtmlspecialchars() も実装されたようですが、get_html_translation_table() を利用して、htmlspecialchars() の逆関数を作っていた人も多いでしょう。 function my_unhtmlspecialchars( $text , $quotes = ENT_QUOTES ) { r...

List posts in the topic

none Re: Re: get_html_translation_table()の罠

msg# 1.2
depth:
1
Previous post - Next post | Parent - Children.1 | Posted on 2008/7/1 18:27
vaughan  上等兵   Posts: 37
ok thanks :)

on a sidenote: we also discovered when using UTF-8 charsets fully, we ran into a few small issues with icms, which will affect xoops aswell.

in certain conditions, it is not enough to just use htmlspecialchars. but you also need to set which characterset you are using aswell.

as default htmlspecialchars encodes with ISO charset, for utf-8 you need to specify utf-8

example $text = htmlspecialchars($text, ENT_QUOTES, _CHARSET);

especially with function htmlSpecialChars() in xoops textsanitizer
Votes:11 Average:10.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!