Jump to content

Recommended Posts

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 by QuickOldCar
Link to comment
https://forums.phpfreaks.com/topic/278055-bbcode-on-urls-within-php-code-tags/
Share on other sites

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';
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.