Solution: As discussed with boombatower, xpath escaping isn't really possible, so I have to replace randomString() with randomName() which does not use special chars.

CommentFileSizeAuthor
#2 randomString_replaces.patch1.96 KBBerdir
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Berdir’s picture

Berdir’s picture

Status: Active » Needs review
FileSize
1.96 KB

Here's a patch.

Berdir’s picture

Status: Needs review » Fixed

Commited to all branches.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.