From the database, we get the string in the following format.
_This is string from DB_. Make sure this is format from DB
Now, on JSX/javascript, I want to set the string between two underscores to bold (this is the string from the database in bold format)
You can use a regular expression to match a string between two underscores and wrap it with a label. You can do this using the string object's replace method. For example, you can modify the code like this: