[#1747] Strip the markdown for htl allowed case
[#1747] Fix the tests to use correct function