# Server Script Error and Text Not Showing in Text Component

**URL:** <https://forums.realmacsoftware.com/t/server-script-error-and-text-not-showing-in-text-component/46851>\
**Category:** Elements\
**Created:** [March 24, 2025, 5:51pm UTC](https://forums.realmacsoftware.com/t/server-script-error-and-text-not-showing-in-text-component/46851 "2025-03-24T17:51:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bill](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/bill/32/107_2.png) [@Bill](https://forums.realmacsoftware.com/u/Bill)\
**Post date:** [March 24, 2025, 5:51pm UTC](https://forums.realmacsoftware.com/t/server-script-error-and-text-not-showing-in-text-component/46851/1 "2025-03-24T17:51:12Z")

</div>

@tpbradley  
I’ve got a two-for bug for you today.  
I’ve added a minified app js file in Page Settings \> Body End and when it runs, get error Unexpected identifier ‘Get’ expected ‘)’ to end a compound expression.

- It looks like part of script is showing in preview and from what I can deduce, the RWWebServerPageRequiresRefreshing has the Get in it.  
Here’s the project:  
elementsapp://downloadDocument/W80HTPyGHQWx

- Also when placing a text component first in the page, the beginning text is not displayed in edit window.

---

<div class="post-metadata">

**Author:** ![tpbradley](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/tpbradley/32/25503_2.png) [@tpbradley](https://forums.realmacsoftware.com/u/tpbradley)\
**Post date:** [March 24, 2025, 6:36pm UTC](https://forums.realmacsoftware.com/t/server-script-error-and-text-not-showing-in-text-component/46851/2 "2025-03-24T18:36:38Z")

</div>

Hey @Bill,

I’ve been able to reproduce the first issue with DOMPurify in body end. The issue is that we run the page content through an HTML validator/sanitiser and it’s getting confused by the HTML tags embedded within the DOMPurify source. We should be able to get this fixed up!

> [@Bill](#):
>
> Also when placing a text component first in the page, the beginning text is not displayed in edit window.

I’m not following with this one, I drop a text component into a fresh page and it seems fine here. Can you post a screenshot?

---

<div class="post-metadata">

**Author:** ![Bill](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/bill/32/107_2.png) [@Bill](https://forums.realmacsoftware.com/u/Bill)\
**Post date:** [March 24, 2025, 7:25pm UTC](https://forums.realmacsoftware.com/t/server-script-error-and-text-not-showing-in-text-component/46851/3 "2025-03-24T19:25:44Z")

</div>

Oh, on the text, this ‘text clipping’ is when my component panel is open on the bottom. Here’s a screenshot:

 ![text_notallshowing](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/0/8/0818d32f6e04def68cae6bf53c682c850fb5d828.png)

---

<div class="post-metadata">

**Author:** ![tpbradley](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/tpbradley/32/25503_2.png) [@tpbradley](https://forums.realmacsoftware.com/u/tpbradley)\
**Post date:** [March 24, 2025, 10:31pm UTC](https://forums.realmacsoftware.com/t/server-script-error-and-text-not-showing-in-text-component/46851/4 "2025-03-24T22:31:04Z")

</div>

Yeah I see, that’s quite a small height available to the editor you have there. There’s still a few panels in Elements that can be made too small and oddities like this show up. We need to do another pass over them all.

---

<div class="post-metadata">

**Author:** ![tpbradley](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/tpbradley/32/25503_2.png) [@tpbradley](https://forums.realmacsoftware.com/u/tpbradley)\
**Post date:** [March 26, 2025, 7:03pm UTC](https://forums.realmacsoftware.com/t/server-script-error-and-text-not-showing-in-text-component/46851/5 "2025-03-26T19:03:41Z")

</div>

Hey @Bill,

Great news, the script issue should all be fixed in [Today’s Build](https://forums.realmacsoftware.com/t/elements-0-7-0-23410/46942/1)! Can you give it a try and let me know how it goes?

Cheers
