Special chars inside .policy files

Ariel Barabas ariel.baras at gmail.com
Wed Jan 14 04:57:08 PST 2015


Hello,

I'm trying to use special characters (the ones that should start with an
ampersand '&' and finish with semicolon ';') but I can't make it work. It
only outputs the part after the ampersand. (eg: ' some text there')

This is part of the .policy file I'm using.

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE policyconfig PUBLIC
     "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
     "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
    <policyconfig>

      <vendor>Some text here & some text there</vendor>
      <vendor_url>http://example.com/</vendor_url>

      <action id="...">
        ...
      </action>

    </policyconfig>

Is there another way of encoding it?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/polkit-devel/attachments/20150114/d572033d/attachment.html>


More information about the polkit-devel mailing list