Fiji Web Design
Welcome, Guest
Please Login or Register.    Lost Password?
ampersands and br tags getting striped out (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: ampersands and br tags getting striped out
#1107
jrthor2 (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
ampersands and br tags getting striped out 2 Years, 2 Months ago Karma: 0  
If I try to put &amp; in, it appears the code is stripping the amp; part, and just keeping the &, and if I try to put a <br /> in, this code is striped out all together. How can I use these tags in your module? I really need the ampersands to work, because just having & is not valid xhtml code.

Thanks.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1108
admin (Admin)
Admin
Posts: 475
graph
User Online Now Click here to see the profile of this user
Re:ampersands and br tags getting striped out 2 Years, 2 Months ago Karma: 10  
Joomla strips out the &lt;br /&gt;

I believe it may also strip html entities based on what you're experiencing. One way to go around it is to double encode the HTML entities.

So &amp; would become &amp;amp;
Thus when it is stripped, it becomes &amp;

You can do it with a quick search and replace of your code. (most text editors allow search and replace. With notepad i think it is Ctr+H)
Search for "&" and replace with "&amp;"

The other method, is to create a PHP file and upload it to your server. Then use an include in mod_php.

include('/path/to/your/file.php');
 
Report to moderator   Logged Logged  
 
Last Edit: 2009/12/10 05:12 By admin.
  The administrator has disabled public write access.
#1109
jrthor2 (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:ampersands and br tags getting striped out 2 Years, 2 Months ago Karma: 0  
using &amp;amp; didn't work either. I'll look at creating seperate files and including them.

Thanks.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Joomla Downloads

DownloadsDownload our free Joomla! Components, Modules and Plugins.