Use markupsafe for escaping and escape also URL to make genshi happy