Slashes with text being converted to hyperlinks
4 posters
Page 1 of 1
Slashes with text being converted to hyperlinks
I'm not sure when this started, but I noticed it today when a user was having trouble with a script from another forumotion forum. This will affect any javascripts with single line comments.
Apparently some text followed by two slashes with text converts it to a hyperlink.
Ex: 0 + // + Text = 0 http://Text
Apparently some text followed by two slashes with text converts it to a hyperlink.
Ex: 0 + // + Text = 0 http://Text
- Code:
1 //HELLO
2 //TEXT
Last edited by SethC1995 on October 29th 2013, 1:43 pm; edited 1 time in total
Re: Slashes with text being converted to hyperlinks
Hi,
This is a randomly re-occurring issue, could we get a screenshot please, just for verification
Once a member of staff see's this, they'll be able to pass it to the devs and they can apply a fix, hopefully quickly
This is a randomly re-occurring issue, could we get a screenshot please, just for verification
Once a member of staff see's this, they'll be able to pass it to the devs and they can apply a fix, hopefully quickly
RadioHead- Forumember
- Posts : 337
Reputation : 23
Language : English (der?)
Re: Slashes with text being converted to hyperlinks
The screenshot is in the first post, here's the link.
https://i.servimg.com/u/f57/18/21/41/30/captur48.png
https://i.servimg.com/u/f57/18/21/41/30/captur48.png
Re: Slashes with text being converted to hyperlinks
I have a same problem
KevinBlazeCoolerz- Forumember
- Posts : 36
Reputation : 1
Language : Indonesian
Re: Slashes with text being converted to hyperlinks
Regarding the issues with scripts distributed on FM forums. If you are using single line comments ensure that the editor does not break them when posted.
Simple comments should be written as: // Comment (Slash,Slash,Space Comment) The comment must be separated from the slashes, otherwise you risk distributing a broken script.
Simple comments should be written as: // Comment (Slash,Slash,Space Comment) The comment must be separated from the slashes, otherwise you risk distributing a broken script.
This topic can be considered solved as currently there is no solution.technician wrote:"The modication comes from Youtube tags and other contents that use //url instead of http://. There is actually no solution.
Users should not use scripts with simple comments because the use of double slashes makes the following sentence a hyperlink.
Moreover, this use creates bugs. For example a code written on multiple line breaks, will appear on only one line and create a bug.
For example:
$(document).ready(function() {
var text="Texte du message";
// We display the message
alert(text);
);
is going to become:
$(document).ready(function() {var text="Texte du message"; // We display the messagealert(text);
All that is on the right of // is a comment, the text will never appear. The function is considered as "never closed", so a bug occurs"
Re: Slashes with text being converted to hyperlinks
Topic Solved & Locked
Sir Chivas™- Helper
- Posts : 6965
Reputation : 457
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||
Similar topics
» Contact fields Do Not Display Text or Hyperlinks But on HTML
» Forum removing back slashes
» Youtube posting doesnt allow dashs, slashes, etc.
» HTML code not converted
» New smilies being auto converted from .gif to .jpg
» Forum removing back slashes
» Youtube posting doesnt allow dashs, slashes, etc.
» HTML code not converted
» New smilies being auto converted from .gif to .jpg
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum