[html] Error? [/html]

  • ScottG
  • Proficient
  • Proficient
  • ScottG
  • Posts: 483

Post 3+ Months Ago

when trying to show a link like

<a href="javascript: window.external.addFavorite('http://www.website.com','Website Title');">
Click here to add the homepage to your favorites!</a>

using the html bbcode it turns javascript: to javascript&#058;

HTML Code: [ Select ]
<a href="javascript&#058; window.external.addFavorite('http://www.website.com','Website Title');">
Click here to add the homepage to your favorites!</a>
 
  1. <a href="javascript&#058; window.external.addFavorite('http://www.website.com','Website Title');">
  2. Click here to add the homepage to your favorites!</a>
  3.  
  • spork
  • Brewmaster
  • Silver Member
  • spork
  • Posts: 6302
  • Loc: Seattle, WA

Post 3+ Months Ago

phpBB probably just escapes all entities in text it considers to be a URL, and probably [incorrectly] assumes that the 'href' attribute will always contain a URL.
  • ScottG
  • Proficient
  • Proficient
  • ScottG
  • Posts: 483

Post 3+ Months Ago

If you put a space in between t and : it will show as JavaScript :

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 2 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.