WordPress modifies text www.domain.com and includes the a href HTML
-
When a text contains for example http://www.google.com, WordPress will automatically adds an a href HTML so that the text is clickable. See http://blog.mxlab.eu/?p=2176&preview=true
When running a security blog and posting in some articles URLs, I always make sure the URLs are not clickable (by adding/modifying to hxxp:://). In some cases I need to be able to publish a correct URL/information and whenever the malicious URL includes www, WordPress adds the a href to it when viewing the article in public.
When I open the article and modify the view from Visual to text, I should see the HTML source but there is no a href to remove from the line.
Is there a way to avoid this behaviour?
The blog I need help with is: (visible only to logged in users)
-
Please note that I haven’t added the http:// before the www when publishing. So it happens here as well.
-
Hi there, auto-linking domains with www is a feature of WordPress.com. To work around it, you can flip to Text view and put a span tag around the www. part, so it would look like:
<span>www.</span>google.comThis will bypass the auto-linking.
Just let me know if you have any trouble with it.
- The topic ‘WordPress modifies text www.domain.com and includes the a href HTML’ is closed to new replies.