QuickOldCar Posted May 16, 2013 Share Posted May 16, 2013 (edited) Is there a way to eliminate bbcode within php tags on a post. You can look at this link here as an example http://forums.phpfreaks.com/topic/277548-php-coding-for-xml-feed-to-parse-and-work/?do=findComment&comment=1428150 I inserted $xml = simplexml_load_file('http://steamcommunity.com/stats/AgeofEmpiresIIHDEdition/leaderboards/131879/?xml=1'); and the user sees $xml = simplexml_load_file('[url=http://steamcommunity.com/stats/AgeofEmpiresIIHDEdition/leaderboards/131879/?xml=1]http://steamcommunity.com/stats/AgeofEmpiresIIHDEdition/leaderboards/131879/?xml=1%5B/url%5D'); Edited May 16, 2013 by QuickOldCar Quote Link to comment https://forums.phpfreaks.com/topic/278055-bbcode-on-urls-within-php-code-tags/ Share on other sites More sharing options...
QuickOldCar Posted May 16, 2013 Author Share Posted May 16, 2013 Another minor problem would be the urls truncating. Quote Link to comment https://forums.phpfreaks.com/topic/278055-bbcode-on-urls-within-php-code-tags/#findComment-1430379 Share on other sites More sharing options...
Jessica Posted May 16, 2013 Share Posted May 16, 2013 Wrap it in [ nobbc ] tags I think Quote Link to comment https://forums.phpfreaks.com/topic/278055-bbcode-on-urls-within-php-code-tags/#findComment-1430398 Share on other sites More sharing options...
Solution Philip Posted May 16, 2013 Solution Share Posted May 16, 2013 Use tags instead. Quote Link to comment https://forums.phpfreaks.com/topic/278055-bbcode-on-urls-within-php-code-tags/#findComment-1430448 Share on other sites More sharing options...
Jessica Posted May 16, 2013 Share Posted May 16, 2013 Use tags instead. My bad, I was on my phone and didn't realize OP didn't use the code tags OP: The code tags is the way to do it <?php $url = 'https://www.google.com/#hl=en&sclient=psy-ab&q=a+really+long+url&oq=a+really+long+url&gs_l=hp.3..0i13i30.2117.3937.0.4087.17.9.0.8.8.0.256.1230.2j3j3.8.0...0.0...1c.1.12.psy-ab.snEQr_49Tw4&pbx=1&bav=on.2,or.r_qf.&bvm=bv.46471029,d.dmQ&fp=e1c1be35bd28dd7&biw=1680&bih=934'; Quote Link to comment https://forums.phpfreaks.com/topic/278055-bbcode-on-urls-within-php-code-tags/#findComment-1430453 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.