issues
search
TheOdinProject
/
theodinproject
Main Website for The Odin Project
http://www.theodinproject.com
MIT License
3.56k
stars
2.06k
forks
source link
Fix: Details and summary tags not working on preview tool
#4492
Closed
KevinMulhern
closed
2 months ago
KevinMulhern
commented
3 months ago
Because:
We are sanitising the input, but the Rails sanitiser does not include details and summary tags in its default safe list
Closes:
https://github.com/TheOdinProject/theodinproject/issues/4488
This commit:
Overrides the Rails Sanitiser DEFAULT_ALLOWED_TAGS array to include details and summary tags
Moves the preview partial into a component to group the allowed tags logic with the preview.
Because:
This commit: