Fix BSAG module error caused by invalid XML

At the moment, the BSAG seems to return invalid XML code with tags inside of attributes.
So now attributes are regex-checked and stripped of any tag that might be inside.