Home > database >  Named entity expected, got none
Named entity expected, got none

Time:09-21

Please check the below code

<!-- Calendly inline widget begin -->
<div  data-url="https://calendly.com/example/chat?text_color=202a3b&primary_color=4eaf4e" style="min-width:800px;height:800px;"></div>
<script type="text/javascript" src="https://assets.calendly.com/assets/external/widget.js"></script>
<!-- Calendly inline widget end -->

I am trying to add this code as an HTML block in my WordPress website powered by Elementor Pro. I am getting the error name entity expected, got none for the div section.

What is causing this?

CodePudding user response:

The character & starts an entity.

&primary_color isn't a valid entity, hence the error.

The & should be represented by the entity for & which is &amp;.

  • Related