Replace quotation mark (' or ") with an HTML tag.
'
"
The target string.
The name of the HTML tag to use for highlighting.
A new string with the specified tag applied to quoted text.
console.log(PUtilsString.highlight(\`Hi 'user'!\`)) // 'Hi <b>user</b>!'console.log(PUtilsString.highlight(\`Hi "user"!\`)) // 'Hi <b>user</b>!'console.log(PUtilsString.highlight(\`Hi 'user"!\`)) // `Hi 'user"!` Copy
console.log(PUtilsString.highlight(\`Hi 'user'!\`)) // 'Hi <b>user</b>!'console.log(PUtilsString.highlight(\`Hi "user"!\`)) // 'Hi <b>user</b>!'console.log(PUtilsString.highlight(\`Hi 'user"!\`)) // `Hi 'user"!`
Replace quotation mark (
'
or"
) with an HTML tag.