Added config option to use jQuery to select the desired HTML fragment from the entire content with layout.