Issue Bug Closed

#27743CMS/BE: text-version of a richtext-field contains tag-fragments

Stefan Neufeind 06/28/11, 16:42 updated 10/02/18, 12:20

Description

As can be seen in the attached screenshot the text-version (displayed the page-view in BE) contains “fragments” that (imho) don’t really belong there.
What is shown is the “first attribute of empty tags”. And there is a specialised strip_tags()-version that, according to the phpdoc, was created just for this purpose and that is used only in renderText() for the BE.

The output from for example the page-module of TemplaVoila is as you would expect it – no such “fragments”. It leads to irritated backend-users.
The only real “use-cases” for this might be tags like <link> where the email-address would be fetched from. However since using richtext becomes more common these days as it was maybe a few years ago I think we should remove this.

PS: Since the same behaviour also exists in 4.5 we maybe should backport it there as well if accepted.

Reviews 2