Solved

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

Posted on 2014-11-26
1
238 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

816 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

8 Experts available now in Live!

Get 1:1 Help Now