Guys sorry for my English it's my second language.
So There's a string with the following text:
**Lorem** ipsum dolor sit, amet consectetur adipisicing elit.
How to replace "**" characters with <b>
and </b>
tags or <div>
and </div>
tags with React native, so i can output it like this:
<b>Lorem</b> ipsum dolor sit, amet consectetur adipisicing elit.
I tried to start bold text with **
and end with /*
, and then replace **
with <b>
and /*
with </b>
using replace method:
str.replace("/*", "</b>").replace("**", "<b>")
but i got only string like this:
<b>Lorem</b> ipsum dolor sit, amet consectetur adipisicing elit.
.
It's problematic because I'm using React native, which outputs only like string. It'd work in PHP.
Previously thanks!