2008/6/17 Dave <[EMAIL PROTECTED]>:

>
> Hi guys,
>
> I have a problem.
>
> I have a string f.ex:
>        $text = "Lorem Ipsum<br />dolor sit amet";
>
> if I echo it like this:
>        echo $text;
>
> it will show me: Lorem Ipsum dolor sit amet without line break
>
> what do I have to do so it breaks the line? or am I doing something
> wrong?



Hi Dave,

When you say "it will show me" I presume you are looking the HTML source.
If it's true, there's nothing sanitizing this variable befere you prints it?
You just wrote this two lines of code one after other in a view?

If you look at your HTML source and the <br /> is there but have no visual
effect, it's probably you CSS code.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to