|
|
|
|
Thread title: html tags don't format in Javascript |
|
|
|
|
|
Thread tools
Search this thread
Display Modes
|
|
05-28-2008, 05:36 AM
|
#1
|
Status: Jakowenko.com
Join date: Jun 2005
Location: Michigan
Expertise:
Software:
Posts: 2,199
|
html tags don't format in Javascript
I've got a script I use and the HTML tags being pulled from the source don't display on the javascript page. I get things like <br /> without it adding the break. Any idea how to fix this?
|
|
05-28-2008, 06:47 AM
|
#2
|
Status: I'm new around here
Join date: May 2008
Location:
Expertise:
Software:
Posts: 11
|
Hi,
You can send me the code once to check if possible.
|
|
05-28-2008, 03:38 PM
|
#3
|
Status: Member
Join date: Mar 2005
Location: Trapped in my own little world
Expertise: Web Applications
Software: Notepad++
Posts: 385
|
Yes, we would need to see the source for any of us to help you fix your code.
|
|
05-28-2008, 04:55 PM
|
#4
|
Status: Jakowenko.com
Join date: Jun 2005
Location: Michigan
Expertise:
Software:
Posts: 2,199
|
|
|
05-28-2008, 04:57 PM
|
#5
|
Status: Jakowenko.com
Join date: Jun 2005
Location: Michigan
Expertise:
Software:
Posts: 2,199
|
I uploaded the script here as an attachment, apparently it won't work with a direct link.
|
|
06-03-2008, 08:11 PM
|
#6
|
Status: Member
Join date: Feb 2008
Location: Norway
Expertise:
Software:
Posts: 101
|
Well for a start, it seems you misspelled the break-line. It's <br /> not <br> ..
|
|
06-05-2008, 09:05 PM
|
#7
|
Status: Jakowenko.com
Join date: Jun 2005
Location: Michigan
Expertise:
Software:
Posts: 2,199
|
I'm not the one who scripted it, and <br> also will do a line break.
|
|
06-06-2008, 01:57 PM
|
#8
|
Status: Member
Join date: Feb 2008
Location: Norway
Expertise:
Software:
Posts: 101
|
Originally Posted by Jako
I'm not the one who scripted it, and <br> also will do a line break.
|
Maybe. What's your Doctype-setting?
|
|
06-06-2008, 02:40 PM
|
#9
|
Status: Member
Join date: Dec 2007
Location: Liverpool, UK
Expertise:
Software:
Posts: 287
|
this isn't javascript it's php.
my php is not great, so I mgiht not have this right. Try taking out the tags you put in the strip_tags if you want them to display.
|
|
06-07-2008, 08:39 AM
|
#10
|
Status: Member
Join date: Feb 2008
Location: Norway
Expertise:
Software:
Posts: 101
|
Ok, I put some linebreaks in your code for making it easier to read:
Code:
document.write('<a href="http://forums.brius.com/comments.php?DiscussionID=5"
class="links2">Where will my testimonials go?</a>
<small> by Dave on May 21, 2008</small>
<br>Your testimonials will be displayed on our main website located here, http://brius.com/hosting/testimonials.php<br /><br />
Voice your opinion and let others know what you like and dislike. Please include your domain hosted (free ...<br><br>
<a href="http://forums.brius.com/comments.php?DiscussionID=4" class="links2">Pre-Sales Inquiries</a>
<small> by Dave on May 21, 2008</small>
<br>If you would rather contact us directly via email about a pre-sales question, http://secure.brius.com/submitticket.php?step=2&amp;deptid=003
<br><br><a href="http://forums.brius.com/comments.php?DiscussionID=3" class="links2">Welcome to the Brius Community!</a>
<small> by Bryan Le on May 20, 2008</small>
<br>Howdy everyone!<br /><br />Welcome to the brand new Brius community boards where everyone talks.<br /><br />I\'ll edit and update this later.<br><br>');
|
|
|
|
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|