Search the Community
Showing results for tags 'htmlentities'.
-
I take the article from RSS feeds, and I am not able to remove this character. I have tried this iconv( "UTF-8", "ISO-8859-1//IGNORE", $string ), however, I still get Jakarta�s instead of Jakarta�s in http://www.indonesiaah.com/articles/destinations/3/jakarta%C3%A2%EF%BF%BD%EF%BF%BDs-neo-gothic-catholic-cathedral-.htm. Does anyone have the solution for this problem? Thank you.
- 4 replies
-
- htmlentities
- illegal chars
-
(and 1 more)
Tagged with:
-
I am retrieving text and HTML tags from a database while using this function to encode the values for the browser. foreach ($row as $key => &$value){ $value = htmlspecialchars_decode( htmlentities($value,ENT_QUOTES), ENT_NOQUOTES ); } Basically, I am looping through each row and converting quotes, single quotes, and other special characters to entities while keeping HTML tags. However, when there's tags like <a href="example.com"> the quotes are duplicated twice and outputs to this: <a href=""example.com""> What am I doing wrong?
- 2 replies
-
- htmlentities
- htmlspecialchars
- (and 3 more)