# Custom html with php

**URL:** <https://forums.realmacsoftware.com/t/custom-html-with-php/44768>\
**Category:** RapidWeaver Elements\
**Created:** [September 27, 2024, 1:19pm UTC](https://forums.realmacsoftware.com/t/custom-html-with-php/44768 "2024-09-27T13:19:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jomakri](https://avatars.discourse-cdn.com/v4/letter/j/8797f3/32.png) [@Jomakri](https://forums.realmacsoftware.com/u/Jomakri)\
**Post date:** [September 27, 2024, 1:19pm UTC](https://forums.realmacsoftware.com/t/custom-html-with-php/44768/1 "2024-09-27T13:19:49Z")

</div>

Since the last update (version 10 (22909) php code is no longer or not correctly executed. I have tested on the local server (XAmpp) independently of RW-elements with \<?php phpinfo(); ?\> that php runs. If I add a customer html and insert the code

\<?php echo ‘\<b class='text-green-500‘\>Hallo World\_1\</b\>’; ?\> \<p\>\<b class=‘text-green-500’\>Hallo World\_2\</b\>\</p\> \<p\>I get the following result\</p\> \<p\>Hello World\_1’; ?\>\<br\> Hello World\_2 (green and bold)\</p\> \<p\>The file is index.php\<br\> The ‘\<p\>’ and ‘\</p\>’ are not part of my code, but were probably added when I created the post\</p\> \<p\>Before I confuse you all. This is the code and the other is the result\<br\> \<img src="https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/b/6/b6ad124cd275b147a7f5ff77482b3b772b5b87a2.jpeg" alt="Bildschirmfoto 2024-09-27 um 16.11.32" data-base62-sha1="q41HCvRaJUgk2f53qkVXql44mnU" width="690" height="467"\>\<br\> \<img src="https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/1/e/1efe19264629d675cd5842b606077e678d9eb10f.jpeg" alt="Bildschirmfoto 2024-09-27 um 16.15.30" data-base62-sha1="4qaJ4U73nv2mePbt1OsPfoVDc9p" width="345" height="123"\>\</p\>

---

<div class="post-metadata">

**Author:** ![logrunner](https://avatars.discourse-cdn.com/v4/letter/l/59ef9b/32.png) [@logrunner](https://forums.realmacsoftware.com/u/logrunner)\
**Post date:** [September 27, 2024, 3:20pm UTC](https://forums.realmacsoftware.com/t/custom-html-with-php/44768/2 "2024-09-27T15:20:23Z")

</div>

It’s a bit difficult to read your code because you haven’t included it in a preformatted text block. 🤔

I have just tried this code and it works perfectly in Preview.:

```auto
<?php echo "<b class='text-green-500’>Hallo World_1</b>"; ?>

```

Looking at your code, you are using a single quote that looks a bit odd (inclined). I suggest you stick to double-quotes and single quotes and see if that works.

Hope this helps? 🙂
