This is a migrated thread and some comments may be shown as answers.

XHTML formating on IMG and BR tags striped

2 Answers 46 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Bill Seagle
Top achievements
Rank 1
Bill Seagle asked on 10 Aug 2009, 11:23 PM

Markup is shown properly in the HTML view of the RadEditor, but is striped when rendered on the page.

Here is my HTML as shown in the RadEditor:

<p><img alt="the other" src="/PublishingImages/Signing-4730x.jpg" /></p>  
<p>this<br /> 
test</p> 
 

Note the end tags on BR and IMG, but when the page is rendered I get this:

<p><img alt="the other" src="/PublishingImages/Signing-4730x.jpg"></p> 
<p>this<br> 
test</p> 

 

For both the img and the br tags the closing / is removed.  How can I prevent this from happenging?

2 Answers, 1 is accepted

Sort by
0
Lini
Telerik team
answered on 12 Aug 2009, 07:34 AM
Hello,

The behavior you experienced is part of the MOSS publishing sites implementation and we do not have control over it. The editor submits what you see in HTML mode. After that MOSS applies some content filters which modify the content before saving it in the SharePoint database. These filters sometimes break XHTML compliance (removing quotes from attributes or not properly closing tags). As I said, this happens after the content leaves the editor so we have no control over it. You can verify this by entering the same content into a RadEditor web part (content editor web part). Since no filters are applied there, the content you see in HTML mode will remain the same in presentation mode.

Sincerely yours,
Lini
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
NTS
Top achievements
Rank 1
answered on 06 Jun 2016, 01:19 PM

Hi Lini,

 

Is this 'issue' still the same on the newest RADEditor?

 

John

Tags
WebParts for SharePoint
Asked by
Bill Seagle
Top achievements
Rank 1
Answers by
Lini
Telerik team
NTS
Top achievements
Rank 1
Share this question
or