Solved

<b>sathish</b> is not working in HTMl page

Posted on 2014-11-26
5
174 Views
Last Modified: 2014-11-26
Hi ,

for e surity purpose i escape the spl char into symbol
so <b>sathish </b> will changed as >&lt;b&gt;sathish&lt;/b&gt;

if you print in  html file

input                                                                  Output
<b>sathish </b>                                              sathish
   &lt;b&gt;sathish&lt;/b&gt;                      <b>sathish </b>            why its not printing with bold ????
0
Comment
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 9

Accepted Solution

by:
Brian Tao earned 500 total points
ID: 40466345
Because they are literal strings and not HTML tags.
0
 
LVL 20

Author Comment

by:Sathish David Kumar N
ID: 40466394
then what i need to do ??
0
 
LVL 9

Expert Comment

by:Brian Tao
ID: 40466555
By combining your multiple posts, I guess you're trying to strip all the tags except <b> and </b> (and actually you also need to keep the <br> for line breaks).  Why not simply tell us what you're trying to achieve instead of asking a javascript question which would not solve your problem?
0
 
LVL 9

Expert Comment

by:Brian Tao
ID: 40466558
Maybe by providing the input string and the expected output?
0
 
LVL 20

Author Closing Comment

by:Sathish David Kumar N
ID: 40466579
Thanks for time and ur answer  I solved myslef
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

756 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