mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-02 19:22:47 +00:00
Merge pull request #3316 from G-Ambatte/fixSantizeScriptTags-#3315
Fix sanitizeScriptTags when content is null
This commit is contained in:
@@ -104,8 +104,9 @@ const BrewRenderer = (props)=>{
|
|||||||
|
|
||||||
const sanitizeScriptTags = (content)=>{
|
const sanitizeScriptTags = (content)=>{
|
||||||
return content
|
return content
|
||||||
.replace(/<script/ig, '<script')
|
?.replace(/<script/ig, '<script')
|
||||||
.replace(/<\/script>/ig, '</script>');
|
.replace(/<\/script>/ig, '</script>')
|
||||||
|
|| '';
|
||||||
};
|
};
|
||||||
|
|
||||||
const renderPageInfo = ()=>{
|
const renderPageInfo = ()=>{
|
||||||
|
|||||||
Reference in New Issue
Block a user