J jpavel Jan 20 2 2022-03-18 #1 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?
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?
Charles Dye Super Moderator May 5,068 133 Staff member 2022-03-18 #2 I can reproduce this. Wouldn't be difficult to re-implement as a plugin function.
Joe Caverly Aug 2,015 81 2022-03-18 #3 Suggestions: Try the DEHTML command from @Charles Dye's Textutils plugin. You could also try the /simple=16 option of TPIPE. Joe
Suggestions: Try the DEHTML command from @Charles Dye's Textutils plugin. You could also try the /simple=16 option of TPIPE. Joe
Charles Dye Super Moderator May 5,068 133 Staff member 2022-03-18 #4 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.
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.
J jpavel Jan 20 2 2022-03-18 #5 @Charles Dye , wow - thanks, that was a quick turnaround! I appreciate it.
Charles Dye Super Moderator May 5,068 133 Staff member 2022-03-18 #6 jpavel said: @Charles Dye , wow - thanks, that was a quick turnaround! I appreciate it. Click to expand... Slow day at the office; thanks for the entertaining project.
jpavel said: @Charles Dye , wow - thanks, that was a quick turnaround! I appreciate it. Click to expand... Slow day at the office; thanks for the entertaining project.