How to allow comment tags in the post body

rated by 0 users
Answered (Verified) This post has 2 verified answers | 2 Replies | 2 Followers

Top 500 Contributor
43 Posts
Points 730
av613 posted on Thu, Aug 21 2008 3:43 PM

Hello,

What to add to the communityServer.config file to allow "HTML comment tags" (e.g. <!-- and -->) in the FormattedBody of the post?

Thanks,
Arsen

 

  • | Post Points: 35

Answered (Verified) Verified Answer

Top 100 Contributor
196 Posts
Points 2,830
Answered (Verified) Jeff replied on Fri, Aug 22 2008 10:26 AM
Verified by Nick

Short answer: Based on the way the HtmlScrubber reads that configuration block, I don't think you can get that done.

You could go the long route of replacing the HtmlScrubber module in your configuration such that you implement your own scrubber, but saving those comments would have to be very worthwhile.

There may be some other tricks you could play with a custom formatting module using the PrePostUpdate event, but I can't think of anything that won't be painful.

  • | Post Points: 25
Top 10 Contributor
2,423 Posts
Points 19,635
MVPs
Answered (Verified) Nick replied on Sat, Aug 23 2008 8:49 AM
Verified by Nick

Unfortunatly this cannot be done in community server because of the HTML scrubber, and the fact that <!-- and --> are comments in XML too, which is why the config files will ignore things with them in.

  • | Post Points: 25
Page 1 of 1 (3 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com