Custom Injector to display URL address along with link text.
commit0b6ae1c3c13932e7e83b268f4a978ff00af6e50e
authorDavid Morton <mortonda@dgrmm.net>
Thu, 23 Oct 2008 21:11:29 +0000 (23 17:11 -0400)
committerEdward Z. Yang <edwardzyang@thewritingpot.com>
Thu, 23 Oct 2008 21:11:29 +0000 (23 17:11 -0400)
treed3b47c72f22985bb0307a444f2969d186ffb7b33
parentab263a0bf150a3a703683d31d6fe6fe63bcbe4e6
Custom Injector to display URL address along with link text.

When viewing potentially hostile html, it may be helpful to see what
a given link was pointing to.  This new injector takes the href
attribute and adds the text after the link, and deletes the href
attribute.

Other forms of display could easily be contrived, but this seems to be
a good basic way to present the information.

Signed-off-by: David Morton <mortonda@dgrmm.net>
Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
configdoc/usage.xml
library/HTMLPurifier.includes.php
library/HTMLPurifier.safe-includes.php
library/HTMLPurifier/ConfigSchema/schema.ser
library/HTMLPurifier/ConfigSchema/schema/AutoFormat.DisplayLinkURI.txt [new file with mode: 0644]
library/HTMLPurifier/Injector/DisplayLinkURI.php [new file with mode: 0644]
tests/HTMLPurifier/Injector/DisplayLinkURITest.php [new file with mode: 0644]