From 5cdc5d015d68f569bc7c0fbab3fe0cafcd699147 Mon Sep 17 00:00:00 2001 From: Emanuele Cesena Date: Thu, 15 Jan 2015 15:35:08 -0800 Subject: [PATCH] Fix nodeToString() to return valid HTML In some cases the output of nodeToString() is not valid HTML, e.g. for iframe nodes. Solution found here: http://stackoverflow.com/questions/27020950/lxml-modify-tags-prevent An example of bad behavior is an article with a youtube video inside. The video embed code is transformed into `