You are here: Re: inject character at the end of a very long string in an HTML email « PHP Language « IT news, forums, messages
Re: inject character at the end of a very long string in an HTML email

Posted by Julien Plιe on 08/12/07 15:50

Le Sat, 04 Aug 2007 21:15:01 -0700, Kevin Raleigh a Γ©critΒ :

> I have one very long line of code that ends abruptly with a " ! "
> exclamation point.
> If I add or subtract code the exclamation point moves accordingly. "This
> character is injected", and it is not part of my code Here is the code.
> Look to the very last line of the code:
>
(SNIP)
>
> NOTICE that the last character is an " ! "
>
> Has anyone ever had this problem before? Any suggestions on how to break
> the html code into multiple lines of code?
>
> insight appreciated
> thank you
> Kevin

Hello Kevin,

Easy to do: first you need to now WHERE you CAN cut the string (so that
it won't disturb the display). Then, you have to new WHERE you HAVE TO
cut the string (so that you're sure you won't cut it to many times nor to
little times). Then, you have to now HOW you can cut the string
(actually, this will be by inserting a new line ("\n") or carriage return
+ new line ("\r\n") or maybe still the old MacOS way: a carriage return
("\r")). Then, you have to find how to merge all those rules together and
try your algorithm.

Like I told, easy, but I'm too lazy to code it :o)


Julien

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация