I'm trying to escape the apostrophes in the value of a variable that is passed as a string parameter using thymeleaf. My code looks like this:

```
<button type="button" class="btn btn-default btn-sm" th:id="${'delete'+document['oid_pj']}"
                th:if="${document['utilisateur'] == session.utilisateur}"
                th:onclick="'deletePj(\''+${document['oid_pj']}+'\',\''+ ${document['url']} +'\');'">

```

and when the html page is interpreted it looks like this:

```
<button type="button" class="btn btn-default btn-sm" id="deleteAS8bo00000F1T" onclick="deletePj('AS8bo00000F1T','//20150007/GIWkE0000FHUI//Creation d'un service GtMonitor.doc');">

```

so the apostrophe from "d'un" closes the parameter before it's meant to.

Does anyone know how can i escape it?