Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

@htmldecode doesn't work?

Jan
20
2
It seems only to recognize & and no other entities:

Code:
echo "%@htmldecode[foo & bar]"
"foo & bar"

echo "%@htmldecode[foo > bar]"
"foo > bar"

Anyone else work around this problem?
 
I can reproduce this. Wouldn't be difficult to re-implement as a plugin function.
 
I've uploaded a plugin with replacement @HTMLDECODE and @HTMLENCODE functions: HtmlDecode Plugin

It supports well over 100 entities, plus numeric entities and high-order Unicode characters.
 

Similar threads

Back
Top