OpenELEC/OpenELEC.tv — pull request #427 by johanbcn (2012-04-09 16:16:17+00:00)
Title: Parsing of XML entities when generating the settings.conf file

Basic XML entities such as """, "'", "&", "<", and ">" are not being parsed when the file /var/config/settings.conf is generated, and thus options such as NET_PASSPHRASE are being generated incorrectly.

Moreover, the systemconfig script only searches for properties encapsulated in double quotes. When XBMC generates the XML config files, values that contain double quotes are encapsulated in single quotes (even though the double quotes are being parsed into XML entities), and thus the script ends up missing them.

This patch takes care of both problems. I am not sure if there is a more elegant way of dealing with entities, so I'm open to suggestions.