Solved

how to replace     str. replace(/&lt;/b&gt;/g, "</b>")

Posted on 2014-11-26
1
231 Views
Last Modified: 2014-11-26
how to replace     str. replace(/&lt;/b&gt;/g, "</b>")

/ is not accepting so its giving javascript error !

i tired str. replace(/&lt;//b&gt;/g, "</b>") but no use
0
Comment
1 Comment
 
LVL 25

Accepted Solution

by:
Lee Savidge earned 500 total points
ID: 40466497
Try this:

str.replace(/&lt;\/b&gt;/g, "</b>");

Open in new window

0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now