473,386 Members | 1,668 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

how can I print < character, in response for json, source html

rubenrp81
I want to make json respond string, this string have html source code like <html...<body...<p... but When I get the response from mysql result and print, all text after < character disapear.

If i want to print "some_text_<html><header....
the result is: "some_text_

and the page seems to die but without error, please heLP ME!!!
Nov 14 '12 #1

✓ answered by Dormilich

are you looking at the source code or at the rendered output?

5 2247
Dormilich
8,658 Expert Mod 8TB
are you looking at the source code or at the rendered output?
Nov 15 '12 #2
obviously source!, I want to generate source response.
Nov 15 '12 #3
Dormilich
8,658 Expert Mod 8TB
can you post an example code (PHP & HTML)
Nov 15 '12 #4
sorry... obviously not see source. jjajajajaja thanks for your attention... I make a examplr for you and see my error. I was confused because I store on db simple text an see response on page with json strings but when add html tag I lose that view because I see tha alwais on browser. Sorry.

I feel like a fool, thanks you for your time and help! :(
Nov 16 '12 #5
Dormilich
8,658 Expert Mod 8TB
you’re welcome. anyways, it’s always those "stupid" errors that occur most (even for me).
Nov 16 '12 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

21
by: Wladimir Borsov | last post by:
Assume I want to publish a longer article on a web page. One of the paragraphs I want to display with an indent. Read: All text lines of this paragraph should be displayed with (let's say 8) blanks...
9
by: David D. | last post by:
Does the file extension matter when including a JavaScript file in an HTML page? Normally, one would include a JavaScript file in an HTML page using <script src="foo.JS" type="text/javascript">...
3
by: Doc | last post by:
At this link http://biphome.spray.se/gunnart/video/ about 2/3 of the way down the page you'll see a section that says: Deshaker Deshaker is a video stabilizer. It has its own page *here* ...
4
by: lidija | last post by:
Hi everybody, My problem is following: in the HTML source I have an <XML> tag, containing an XML document. I am trying to read this XML and save it, but I have problem saving it in the same form...
3
by: Giganews | last post by:
I'm facing a crazy problem: <% spc = "<abcd" response.write spc %> will not work, spc is empty. When I replace <abcd with ab<cd, then spc contains only ab.
2
by: Le Minh | last post by:
Open Source HTML Parsers in C# Hi, Im looking for HTML parser developed in C# which i can extend according to my needs are there any?? Thanks
0
by: Tor Inge Rislaa | last post by:
Replacing character with ASCII code (HTML) Is it possible to replace a given character or symbol with it's ASCII code within a <ptag in HTML code. TIRislaa
1
by: Johnston.Robyn | last post by:
What's the best way to deliver a handful of HTML, AND ALSO a handful of JSON in the same XMLHttpRequest?
21
by: mikhal80 | last post by:
Is it possible to write a program which would print out it's own source code, using C++?
4
by: mark4asp | last post by:
I have an element, report which contains tags which have been transformed. E.g. <pis &lt;p&gt <myXml> <report>This text has html tags in it.&lt;p&gt which but <has been changed to &lt;&gt</report>...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.