diff options
| author | Henry Jameson <me@hjkos.com> | 2023-06-05 21:57:36 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2023-06-05 21:57:36 +0300 |
| commit | 0109724a5f16e58a78ab4c09c955c44982368c6f (patch) | |
| tree | 388afbb88433ae050a6d50f78647623a39a297f2 | |
| parent | 10e28f6c1df4432947fa5686c6cecde9ffe8582d (diff) | |
case insensititvy
| -rw-r--r-- | src/components/rich_content/rich_content.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/rich_content/rich_content.jsx b/src/components/rich_content/rich_content.jsx index 47ef517b..b16ab242 100644 --- a/src/components/rich_content/rich_content.jsx +++ b/src/components/rich_content/rich_content.jsx @@ -150,8 +150,8 @@ export default { if (Array.isArray(item)) { const [opener, children, closer] = item let Tag = getTagName(opener) - if (Tag === 'script') Tag = 'js-exploit' - if (Tag === 'style') Tag = 'css-exploit' + if (Tag.toLowerCase() === 'script') Tag = 'js-exploit' + if (Tag.toLowerCase() === 'style') Tag = 'css-exploit' const fullAttrs = getAttrs(opener, () => true) const attrs = getAttrs(opener) const previouslyMentions = currentMentions !== null |
