Solved

PHP echo Displaying HTML Code, Not Desired HTML Content

Posted on 2012-03-30
3
383 Views
Last Modified: 2012-03-30
In the following page, notice the section "Product Information" http://goo.gl/pRk70

Why won't this content display properly?  It's acting like I've used htmlspecialchars or htmlentities but I haven't.

The database entry is as such:

<font size="1" face="Univers-CondensedLight"><font size="1" face="Univers-CondensedLight">• Easily switches between speakerphone, headset, and handset modes</font></font><p align="LEFT"><font size="1" face="Univers-CondensedLight"><font size="1" face="Univers-CondensedLight">• 32-character LCD display shows number dialed, length of call, and other useful information</p><p>
• 36-entry phone book</p><p>
• 99-number incoming and outgoing call history directories let you easily access past call information</p><p>
• Mute button allows private off-line conversation without other party hearing your conversation</p><p>
• Caller ID with on Call Waiting</p><p>
• Distinctive rings for each line</p><p>
• One-touch speed dial and search/sort speed dialing</p><p>
• Repetitive redial</p><p>
• FSK and expanded PBX message waiting indicator</p><p>
• Nonvolatile RAM protects stored information if power is lost</p></font></font>
0
Comment
Question by:EMB01
[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
  • 2
3 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 37789399
You can use htmlspecialchars_decode http://us2.php.net/manual/en/function.htmlspecialchars-decode.php to take care of that part of the problem.  You also have a character set mismatch as shown by the " â€¢ FSK ".  That's usually when you are showing UTF8 characters on a Latin1 page (which you are doing).
0
 
LVL 14

Author Closing Comment

by:EMB01
ID: 37789631
Thanks, this wasn't the whole problem, though.  The other part was that I wasn't allowing special characters into my database (dumb on my part, didn't realize at first).
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 37789638
You're welcome, glad you got it fixed.
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
output in HTML format powershell 6 45
P3P validator , ASP, PHP ,Https and Http links 3 37
Editing .asp website 5 27
Prestashop modules custimzation 2 20
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
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 …

740 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