0

How to replace string to node

How could it be possible? Here's my code. It doesnt work. How can I make something working like this? https://code.sololearn.com/W0SfSMD4De9G/#html Algorithm: there is paragraph there is word with red color with RegExp one word in paragraph replaces to word with red color.

16th Aug 2017, 6:03 PM
Š˜Š»ŃŒŃ Š±Š°Š“Š°Š½ŠøŠ½
Š˜Š»ŃŒŃ Š±Š°Š“Š°Š½ŠøŠ½ - avatar
2 Answers
16th Aug 2017, 6:19 PM
Yaroslav Pieskov
Yaroslav Pieskov - avatar
0
@Yaroslav Pieskov thank you!
19th Aug 2017, 8:18 AM
Š˜Š»ŃŒŃ Š±Š°Š“Š°Š½ŠøŠ½
Š˜Š»ŃŒŃ Š±Š°Š“Š°Š½ŠøŠ½ - avatar