wordpress-mobile / WordPress-Editor-Android

⛔️ [DEPRECATED] A reusable Android rich text editor component.
GNU General Public License v2.0
188 stars 50 forks source link

Elements added via HTML tab appear in post output, if not closed #446

Open danielwrobert opened 8 years ago

danielwrobert commented 8 years ago

Expected Behavior

When a post has custom HTML added via the HTML tab and is saved in the Android editor, the element auto-close and/or not show up in the post as text, if it is not properly closed. Both the iOS editor and the desktop editor seem to auto close the elements, preventing them from showing up on the page as text.

Actual Behavior

When saved on Android the elements do not appear to auto-close when rendered and then show up in the post as text.

Steps to Reproduce

While editing a post, open the HTML tab and add an element. For example <p class="reference">. Do not close the element. When you save the post, the element itself will show up in the post as a text string.

Screenshots

Markup from HTML tab in post editor on Android. Note that p element is left unclosed:

screenshot_20160810-213406

Output in post showing element as text string:

screenshot_20160810-213543

Markup from HTML tab in post editor on iOS. Note that p element is closed (automatically?):

2016-08-10 21 49 57

Output in post where element is closed and, therefore not being displayed as a text string:

screenshot_20160810-213227