Changed HTML matching code

The code did not cope with multiline descriptions