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

Posted on 2014-11-26
Medium Priority
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 ????
  • 3
  • 2

Accepted Solution

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

Author Comment

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

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?

Expert Comment

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

Author Closing Comment

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

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

This article discusses how to implement server side field validation and display customized error messages to the client.
A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…

607 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