We are stuck with an issue in storing html files in Alfresco. We use Alfresco version 5.0.2.
After uploading a html file into alfresco share and then upon editing and saving, alfresco seem to be removing some of the tags and attributes in the html file.
More specifically alfresco seem to be removing remarks from html file. Our html file has several remarks which is used for proper rendering of the html page. For example, the following line is completely removed by alresco.
<!--#include virtual="/pdpassets/headcssjsmeta.html" -->
I also found that 'content' attribute of the <meta> tag is being removed by alfresco share.
I tried to implement the solution discussed in the below article,
After applying the change discussed in the above article, alfresco share only retains the 'content' attribute of the <meta> tag, however it still removes the remarks i mentioned above. As per the business, these remarks are important and needs to be retained.
What change is needed to make alfresco share to retain all information in html? The solution should work in Alfresco version 5.0.2.
Thanks in advance.
we store html files as .xhtml extension, we dont have issues with tags. We have a lot of files in repository uploaded by share. May be try renaming to .xhtml and see it works for you
I saw another user who thought markup was being removed from their HTML files because they were using "View in Browser" to view the file. Instead, you should be downloading the file and then opening the file to verify its content.
Can you confirm that if you download the file out of Alfresco and view it using some other application that the markup is actually gone?
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.