GetSimple Support Forum
A link using <a> tag will cause to appear random <a> tags after - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: A link using <a> tag will cause to appear random <a> tags after (/showthread.php?tid=2133)



A link using <a> tag will cause to appear random <a> tags after - phpsns - 2011-09-02

I would like to report <a> link bug. Here are the steps to reproduce the problem:

### 1. Disable Get Simple WYSIWYG Editor from

Admin Panel > Settings

by unchecking "Enable the HTML editor"


### 2. Create a new page with the following content
Code:
<p>This is a link to <a href="http://google.com">Google<a/>, the largest search engine in the world.</p>

### 3. Now visit the page from the front end

Use browser's view source or Chrome's Developer Tools, you will see other texts enclosed by <a> and </a> out of nowhere, please refer to the attached screen shot for more info


If you get rid of the link and only paste the following content

Code:
<p>This is a link to Google, the largest search engine in the world.</p>

it will be fine.


Thanks!


A link using <a> tag will cause to appear random <a> tags after - ccagle8 - 2011-09-02

i think this is the browser trying to fix bad code... This is wrong:

Code:
<a/>


It should be:

Code:
</a>



A link using <a> tag will cause to appear random <a> tags after - phpsns - 2011-09-02

Wow, you are right! I wonder how I've missed that!

Thank you so much, you rock!