Posted by rfay on October 14, 2011 at 8:54pm
4 followers
Jump to:
| Project: | Drupal.org webmasters |
| Component: | Other |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
I've noticed this on drupal.org before, but in this issue you can see that URLs get linkified even within a code block. I imagine this means that we need to move the code to later in the input format.
Comments
#1
Related: #198179: Input filtering order causes invalid XHTML
#2
I don't think we want linkification filter before the code filter. If a the code filter finds HTML inside a code block, it gets escaped like so:
+++ b/pift.results.inc@@ -0,0 +1,304 @@
+ * Provide the Automated Testing tab and UI functions.
+ *
+ * @author Jeremy Thorson ("jthorson", <a href="http://drupal.org/user/148199">http://drupal.org/user/148199</a>)
I think the only way to do it would be to have a custom URL filter that is aware of the code filter's function and and ignores any URLs found inside <code> blocks.
#3
Marked #1396874: URLs in PHP snippets broken as duplicate.
#4
Marked #1644662: Links in comment as PHP code breaking the syntax as duplicate.