diff --git a/docs/source/simplesamlphp-theming.txt b/docs/source/simplesamlphp-theming.txt
index 5f8ebb655fe74720a4b5572aed8b38a25ffde4b9..9fa9aa69bcfbce2b02a6c06c29529f59b35f35d9 100644
--- a/docs/source/simplesamlphp-theming.txt
+++ b/docs/source/simplesamlphp-theming.txt
@@ -52,12 +52,11 @@ In the `templates/fancytheme/includes/header.php` type in something and go to th
 
 A good start is to modify the reference to the default CSS:
 
-	<link rel="stylesheet" type="text/css" href="/<?php echo $this->data['baseurlpath']; ?>resources/default.css" />
+	<link rel="stylesheet" type="text/css" href="/<?php echo $this->data['baseurlpath']; ?>resources/default.css" />
 
 to in example:
 
-	&lt;link rel="stylesheet" type="text/css" href="/&lt;?php echo $this-&gt;data['baseurlpath']; ?&gt;resources/fancytheme/default.css" /&gt;
-
+	<link rel="stylesheet" type="text/css" href="/<?php echo $this->data['baseurlpath']; ?>resources/fancytheme/default.css" />
 Adding resource files
 ---------------------
 
@@ -65,7 +64,7 @@ As discussed in the section above, you may want to point to a new CSS file, and
 
 Notice how the `baseurlpath` is made generic in the template:
 
-	href="/&lt;?php echo $this-&gt;data['baseurlpath']; ?&gt;resources/default.css"
+	href="/<?php echo $this->data['baseurlpath']; ?>resources/default.css"
 
 If you add the file `www/resources/fancytheme/default.css` it will be accessible from a URL like this: `https://sp.example.org/simplesaml/resources/fancytheme/default.css`.