Solved

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

Posted on 2014-11-26
5
164 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
  • 3
  • 2
5 Comments
 
LVL 9

Accepted Solution

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

Author Comment

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

Expert Comment

by:Brian Tao
Comment Utility
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
Comment Utility
Maybe by providing the input string and the expected output?
0
 
LVL 20

Author Closing Comment

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

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

771 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

13 Experts available now in Live!

Get 1:1 Help Now