Extract content from html documents and replace by build result