Member
Member
tw2003   2015-04-13, 12:12
#1

I have a problem with HTML case fraction. Normally I would expect "&fract12;" to render ½. However it does not. I'm using tinyMCE editor where it displays correct. On the website itself it does not. The Theme (paradigm) uses printImageDesc() to display the text.
Example: http://paledog.de/Automobile/vintage/1930-bentley-6-litre-speed-six-tourer_rear.jpg.html

I think the problem is that i use the source code option to edit the text. In some Image Titles it works without a problem.

Administrator
Administrator
acrylian   2015-04-13, 13:10
#2

TinyMCE does already encode characters itself. Try entering it as the actual character if you haven't.

Member
Member
tw2003   2015-04-13, 13:32
#3

That's what I originally did. Just tried to overwrite, but it keeps messing it up. I know it's not that common, but in my case I really need it ;-)

Administrator
Administrator
acrylian   2015-04-13, 13:40
#4

Have you tried to add the fraction code in TinyMCE's source view?

Edit: I can reproduce that. Seems some double encoding. Quick fix change the theme to use echo getImageDesc() instead. print function do html encoding generally indeed but not sure why this happens with these chars.

Member
Member
tw2003   2015-04-13, 14:01
#5

Changed it. Works! Many thanks for the quick support. Going to contact the theme developer to fix it for his next release of his theme ;-)

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.