Comments on: Fun with filters http://cheerleader.yoz.com/2002/11/fun-with-filters.html I came here to apologise and eat biscuits, and I'm all out of biscuits Fri, 25 Nov 2016 14:37:10 +0000 hourly 1 https://wordpress.org/?v=4.7.29 By: talijanska http://cheerleader.yoz.com/2002/11/fun-with-filters.html#comment-82 Thu, 04 Dec 2003 05:20:24 +0000 http://cheertest.yoz.com/?p=58#comment-82 olá otários de merda.

]]>
By: Chris Rimmer http://cheerleader.yoz.com/2002/11/fun-with-filters.html#comment-81 Fri, 24 Jan 2003 16:39:48 +0000 http://cheertest.yoz.com/?p=58#comment-81 Unfortunately it also finds and replaces in links, image names etc. So if you fetch http://www.oracle.com and replace “ora” with “xxx” you end up with links to xxxcle.com and all the pictures disappear, because it is looking at xxxcle.com for them!

]]>
By: Yoz http://cheerleader.yoz.com/2002/11/fun-with-filters.html#comment-80 Sun, 01 Dec 2002 12:47:01 +0000 http://cheertest.yoz.com/?p=58#comment-80 Earle: Cheers for the bug report; I’ve fixed that.
Paul: HTML::Munger’s nice but doesn’t actually do that much. Plus, I think that ignoring the fact that HTML and HTTP already have a (mostly) good method of changing the base URI is a bit silly. I may use it for a future filter rewrite.
In other news, that example bug I talk about for much of this entry seems to be gone; the filtered page now calls the correct stylesheet, without my having changed anything. Odd.

]]>
By: paul http://cheerleader.yoz.com/2002/11/fun-with-filters.html#comment-79 Thu, 28 Nov 2002 17:55:42 +0000 http://cheertest.yoz.com/?p=58#comment-79 You also get problems if html tags are fiddled with (eg replace ‘<‘ with ‘ ‘, or ‘div’ with ‘img’ on any page).
In other news, the HTML::Munger module does a lot of the hard work for you. It avoids your problem by doing it the hard way, by rewriting all relevant urls in the page rather than using a base href.

]]>
By: Earle http://cheerleader.yoz.com/2002/11/fun-with-filters.html#comment-78 Thu, 07 Nov 2002 03:37:50 +0000 http://cheertest.yoz.com/?p=58#comment-78 Nice! But as you’ve pointed out, not without some issues. (Try, for example, replacing all instances of “the” on, say, http://downlode.org/blog.pl with “these”.) Still, good one.

]]>