Skip to main content

In all of our product’s email footers, we provide our company copyright info. However, unlike every other HTML email editor we use for sending other emails, PX automatically deletes this HTML code that displays the current year in nyyyy] format:

<script>document.write(new Date().getFullYear())</script>

Please fix this. Thanks!

Hi @kmalk

There’s a couple changes to your code that I would recommend trying. I haven’t tested this so I’m not sure if this will work or not. But… I would try including type and the semicolon at the end of getFullYear()). Here is the updated:

<script type="text/javascript">
document.write(new Date().getFullYear());
</script>

It may not work but thought I would recommend it just in case. I don’t have anything setup to officially test this so I’m not sure if it will work or not.

 

Hope this helps!


Thanks for your suggestion, @jean.nairon. Unfortunately, it doesn’t work either, but I appreciate your kind offer to help! The PX code editor automatically deletes the code.


That sucks. I was really hoping it was a quick change. 

@sai_ram - this should most likely be turned into a product idea. 


Reply