I made this a while ago, but the code works. Please use a real parser. Works with double quotes and single quotes.