I need to make some part of my string bold using the replace function. "b" and "strong" tags do not work within the string as "<" part of tag di
Supposing that you know the text to be put in bold... There is a JS string function bold().
This can help you...
Click the button to display a string in bold. Try it
Click the button to display a string in bold.
Check: https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_str_bold