inherit
97216
0
Nov 26, 2024 13:53:14 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Apr 3, 2010 13:22:57 GMT -8
How do you make the <code></code> HTML tags make any scripts within it not run?
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Apr 4, 2010 15:58:54 GMT -8
put the HTML inside comment tags <!-- -->
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,024
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Apr 4, 2010 19:01:55 GMT -8
The usual practice is to replace all < with its HTML entity <.
I'm still not sure why they decided to drop the L3.2 <xmp> tag in HTML4 since that made pretty much everything except another <xmp> tag inert and was much easier to use.
|
|
inherit
97216
0
Nov 26, 2024 13:53:14 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Apr 5, 2010 6:53:54 GMT -8
Oh, that's a smart idea.. and your idea will only work with HTMl, wormo?
|
|
inherit
130228
0
Jul 11, 2024 19:19:59 GMT -8
Charles Stover
1,731
August 2008
gamechief
|
Post by Charles Stover on Apr 6, 2010 19:07:58 GMT -8
The standard is to use: < for < > for > " for "
Not just one of these, but all of the above. Pressing Ctrl-H (replace) and pressing Replace All is handy for conversions of long bits of code.
|
|
inherit
77753
0
Jul 18, 2024 12:23:50 GMT -8
Bob
2,623
April 2006
bobbyhensley
|
Post by Bob on Apr 6, 2010 20:13:21 GMT -8
The standard is to use: < for < > for > " for " Not just one of these, but all of the above. Pressing Ctrl-H (replace) and pressing Replace All is handy for conversions of long bits of code. PB doesn't block out entities. &l t; for < &g t; for > &q uot; for " Tossing in empty UBBC tags does the trick though.
|
|
inherit
130228
0
Jul 11, 2024 19:19:59 GMT -8
Charles Stover
1,731
August 2008
gamechief
|
Post by Charles Stover on Apr 7, 2010 21:01:51 GMT -8
Ah. Silly me.
Better than empty UBBC, you could just type &lt;
Which reminds me. Replace & with & in unparsed HTML.
|
|
inherit
141904
0
Sept 3, 2010 11:59:33 GMT -8
4whitepaws
5
June 2009
4whitepaws
|
Post by 4whitepaws on Apr 8, 2010 11:55:10 GMT -8
If your server has PHP installed then it has a useful function that allows you to convert a string into entities. Check out htmlentities().
|
|
inherit
130228
0
Jul 11, 2024 19:19:59 GMT -8
Charles Stover
1,731
August 2008
gamechief
|
Post by Charles Stover on Apr 9, 2010 4:20:15 GMT -8
While that's true, I imagine the OP would have already known about HTML entities prior to learning PHP, so I doubt they're that far in their programming journey.
|
|
inherit
97216
0
Nov 26, 2024 13:53:14 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Apr 9, 2010 7:53:22 GMT -8
thanks again! I would have never thought to replace characters.
|
|