Breaking <strong> tags?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Jade
Forum Regular
Posts: 908
Joined: Sun Dec 29, 2002 5:40 pm
Location: VA

Breaking <strong> tags?

Post by Jade »

Hey, I'm using a WYSIWYG editor. Members enter in their HTML or use the buttons up top without a problem. The code saves into a database without issue either. However, when I go to send emails based on that code sometimes I'm getting spaces in the strong tag, so looks like <s trong> instead of <strong> causing strikethroughs in IE.

I've looked through the database, for the emails doing this and I don't see breaks in the <strong> tag before its sent out. Anyone have ideas why this might be happening?
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Re: Breaking <strong> tags?

Post by aceconcepts »

How are you retrieving the data and how are you sending the emails out?
User avatar
Jade
Forum Regular
Posts: 908
Joined: Sun Dec 29, 2002 5:40 pm
Location: VA

Re: Breaking <strong> tags?

Post by Jade »

Retrieving it using a sql query that just grabs everything in the field. Sending it out with a the default mail() call from PHP, nothing fancy, passing the exact data grabbed from the field.
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Re: Breaking <strong> tags?

Post by aceconcepts »

Try outputting your query result to the browser to see if <strong> is being broken up from within the query (which i doubt ). If it is in tact from the query, then mail() must be breaking it.
Post Reply