As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
When I save a html file that has a <script> tag in it, it is removed.
How can I disable this?
Where / how did you save the HTML file to Alfresco? Are you talking about the editor in the Wiki / Blog site components? When storing an HTML file in the document library or repository, Alfresco does NOT remove script tags, but if you are using a richtext editor UI (i.e. in Inline Edit, or the wiki / blog components), then Alfresco will strip out potentially harmful HTML content, including script tags. There is a (very old) blog post about the HTML black/whitelist processing that may help if you really think script-tags should be kept (generally, they should not).
Thank you for your reply. I will check that blog post, unfortunately scripts are needed (for example mathjax formulas...)
Simply drag and dropping a test.html into the project library with "<a>a</a><s>s</s>" and checking it in the "View in Browser" will give "<a>a</a>s"
I might somehow create a workaround as I have to create previews, editors for them. (Are there html editors on github I can base my work on?)