Sanitize Item Descriptions with EnrichedText
Intent
- Creates a new
TextUtils
util class- Moves
StripHtml
to this util - Add new
sanitizeEnrichedText
util
- Moves
- Renames
cprStripHtml
hbs helper tocprSanitizeText
- Updatwes all references of
cprStripHtml
>cprSanitizeText
- Updatwes all references of
Before:
After:
-
This is meant for a hotfix -
This is meant for the next release (see milestone) -
This needs more reviewers than normal; there may be controversy or high complexity -
This intentionally introduces regressions that will be addressed later -
There is/will be documentation changes on the wiki -
Please do not send commits here without coordinating closely with the owner -
This is a Build System change
Related Issues
Steps to Test
- Checkout / Build / Load
- Create Item in character sheet
- Update Description with Enriched HTML stuff (drag items, actors scenes into description)
- Save / Close Item
- Hover over item in sheet
- EnrichedText elemnts just show the name now
@UUID(foobar){Baz}
>Baz
- EnrichedText elemnts just show the name now
Edited by Ryan Walder