HTMLSanitation in 10.1

I have a number of things added in my 8.5 platform in the HTMLSanitation area. I am working on the upgrade to 10.1 and my configurations are not being used. Based on this documentation page, https://community.telligent.com/community/10/w/legacy-user-documentation/59239/html-sanitization, it looks like it should still work. 

In 8.5 I have the changes in the communityserver-override file. This document talks about them being in the communityserver file itself. I have tried both without success. I also noted that in an OOTB installation there aren't any HTMLSanitation configuration entries in the communityServer config file. 

Where did this configuration move to? Or what am I doing wrong? 

Parents Reply Children
  • I'm not sure I understand the question. Are you asking for more details about the IEmbeddedContentFragmentType? If yes, here are a few notes based on what I understand of your need so far:

    1. The ContentFragmentName/Description are just used to display this new editor option in the editor. "Insert remote video" for example, may be a good name.
    2. CanEmbed could always return true if you want to allow all users to embed videos.
    3. The embed configuration would likely consist of two URL properties: one for the poster image and one for the video URL.
    4. You wouldn't need to implement AddUpdateContentFragments() since you wouldn't need to store or process the configuration data until render time.
    5. PreviewImageUrl is a URL used to show this item in the Insert menu and as a placeholder image within the content of the editor.
    6. The Render method would read the two URL values from the provided configuration and format the <video> tag appropriately.
  • I think that helps. I was thinking in the wrong paradym. I was still thinking about scrubbing where this is about adding a new input type. But will that actually allow code in existing posts to be handled correctly if they are ever edited? I suspect not. 

  • But will that actually allow code in existing posts to be handled correctly if they are ever edited? I suspect not. 

    No, unfortunately, it will not. Once you have the plugin implemented and embed a video and then view the source in the editor, it may be possible to run a schema patch to update old video references to use the format of the new embed type (the URLs and reference to the embed type are serialized into the post body).

    Once you have the plugin setup, ping me and I can help with the clean-up of existing data.

  • Thanks Ben. I appreciate your patience. Bottom line on my original post is the type of HTML Sanitation I had been making use of doesn't exist in 10. I'll have to figure out how big of a problem I have. The <video> tag was the one that came to the top of my mind. I need to figure out what other things might be affected by the changes I had made. Obviously, if we don't edit old stuff we are OK ...

    The Insert media from URL really only has one drawback that at times we find problematic. That is the choice of the Poster shot. Communications people are very particular about what frame they want to use. Having the ability to choose a specific image is a critical factor.