The Little Guy Posted February 2, 2007 Share Posted February 2, 2007 I don't know if you know this, but when you post something, and you use html, it takes it as html, atleast it did this for the BR tag, instead of typing it out, was was turned into HTML, instead of text. Quote Link to comment https://forums.phpfreaks.com/topic/36740-html-being-exicuted/ Share on other sites More sharing options...
neylitalo Posted February 2, 2007 Share Posted February 2, 2007 If you use tags around your HTML, then you won't have that problem - like this: <html> <body> This is a test.<br /> </body> </html> It's always a good idea to do that anyway, it makes your stuff easier to read. Quote Link to comment https://forums.phpfreaks.com/topic/36740-html-being-exicuted/#findComment-175231 Share on other sites More sharing options...
Daniel0 Posted February 2, 2007 Share Posted February 2, 2007 Also because it turns syntax highlighting on on PHP code. Quote Link to comment https://forums.phpfreaks.com/topic/36740-html-being-exicuted/#findComment-175286 Share on other sites More sharing options...
.josh Posted February 2, 2007 Share Posted February 2, 2007 I don't think that was the point Little Guy was trying to make, but fyi, the code tags only do syntax highlighting if you encapsulate your code in <?php ... ?> tags. Quote Link to comment https://forums.phpfreaks.com/topic/36740-html-being-exicuted/#findComment-175487 Share on other sites More sharing options...
neylitalo Posted February 2, 2007 Share Posted February 2, 2007 Ah, dang - I just realized what the actual point of that post was. Most tags are disabled to prevent breaking of the actual layout, but some of them (br, as you've discovered) are left in to make it "easier" for people to format their post. Quote Link to comment https://forums.phpfreaks.com/topic/36740-html-being-exicuted/#findComment-175493 Share on other sites More sharing options...
The Little Guy Posted February 3, 2007 Author Share Posted February 3, 2007 Ah, dang - I just realized what the actual point of that post was. Most tags are disabled to prevent breaking of the actual layout, but some of them (br, as you've discovered) are left in to make it "easier" for people to format their post. Ahh... OK. my point was layout, and hacks. Why is the br tag not disabled? You don't even need to use it the board does it automatically for you with the nl2br() function. Quote Link to comment https://forums.phpfreaks.com/topic/36740-html-being-exicuted/#findComment-175943 Share on other sites More sharing options...
neylitalo Posted February 3, 2007 Share Posted February 3, 2007 I'm guessing that br isn't disabled because it's a fairly harmless tag, requires no closing tag, and really can't do much to break layout. Quote Link to comment https://forums.phpfreaks.com/topic/36740-html-being-exicuted/#findComment-175947 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.