Showing results for 
Search instead for 
Did you mean: 

Lithium issue: Phone (small) viewport post editor does not handle HTML coded characters properly

Posts: 23,252
Thanks: 9,760
Fixes: 162
Registered: ‎22-08-2007

Lithium issue: Phone (small) viewport post editor does not handle HTML coded characters properly

  • What browser and version number this was seen on
    Safri (iPhone) iOS 12
  • The operating system
    iOS 12.2
  • A description of what is happening compared to what should be happening
    The post editor on small viewport devices is not the rich text editor as used on larger screens.  It is some form of smart text editor.  Experience suggests that on posting from that editor, text is parsed and special characters (ampersand, greater-than, less-than, non-breaking-space etc) are converted into their HTML special character form as in...
    All is fine until one attempts to edit in the small viewport editor a post created in the small viewport editor...

    HTML is (to varying degrees of sensibility) stripped out, except the encoded HTML special characters which then just appear in the text as text, viz...
    Double  spaced  text
    Double  spaced  text
    Which upon being saved, is not saved as HTML special characters, but as literal text.

    Whatever the smart small viewport editor can encode into HTML it should be capable of decoding, so if it converts "double space" to "a space and a HTML non-breaking-space" then that is what should be seen on seeking to edit the post.

  • The steps needed to replicate the problem
    1. Create post on a smart phone which does not use the rich text editor, which has characters which will be encoded as HTML special characters (double-space is a favourite!)
    2. Save the post
    3. View the new post and select edit post
    4. Observe the rendering of HTML special character codes as plain text
    5. Save the post, observe that the HTML special code characters now form part of the post's text
  • The URL where the problem occurs
    Any post created and edited on the small viewport editor
  • A screenshot (if possible)
    Capture HTML Chars.JPG
  • Any additional information.

Superusers are not staff, but they do have a direct line of communication into the business in order to raise issues, concerns and feedback from the community.