Title: Problems when adding embeds on event description
Last modified: June 5, 2023

---

# Problems when adding embeds on event description

 *  [Hugo Carabaña Menéndez](https://wordpress.org/support/users/hcarabana/)
 * (@hcarabana)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/problems-when-adding-embeds-on-event-description/)
 * When I add embeds (like Twitter or anything else) on the description of my event,
   it generates problems in the calendar view showing part of the text of my description,
   and and at the end this text _`","eventStatus":"https://schema.org/EventScheduled"}`_
 * This problem comes from class-calendar-event-structure.php which has this code(
   lines 1183-1188):
 * `// Event details 
    $__schema_desc = !empty($event_excerpt_txt)? $event_excerpt_txt:(
   isset($EVENT->post_title)? '"'.$EVENT->post_title.'"':''); if(!empty($event_details))
   $__schema_desc = $event_details; $__schema_desc = str_replace("'","'", $__schema_desc);
   $__schema_desc = str_replace('"',"'", $__schema_desc); $__schema_desc = preg_replace("/\
   r|\n/", " ", $__schema_desc );
 * If you simply add this line below this code, the problem it’s solved:
 * `// Escaping embedded content
          $__schema_desc = htmlentities($__schema_desc,
   ENT_QUOTES);
 * Basically, it solves the problems with the quotes on embed content, and solves
   the view on the calendar
 * Can you please solve it on the code?
 * Thank you
   Hugo

Viewing 1 replies (of 1 total)

 *  Plugin Support [ArtemSupport](https://wordpress.org/support/users/artemsupport/)
 * (@artemsupport)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/problems-when-adding-embeds-on-event-description/#post-16795936)
 * Hello,
 * Seems to be working on our test server: [https://devlite.myeventon.com/events/test-8/](https://devlite.myeventon.com/events/test-8/)
 * Could you send us a link to your event?
 * I am also going to contact Ashan about this and he will be able to take it from
   here. Please allow some time for him to get back to you, we greatly appreciate
   your patience and thank you for being a eventon customer!
 * [@ashanjay](https://wordpress.org/support/users/ashanjay/),
 * Could you take a look?

Viewing 1 replies (of 1 total)

The topic ‘Problems when adding embeds on event description’ is closed to new replies.

 * ![](https://ps.w.org/eventon-lite/assets/icon-256x256.png?rev=2820760)
 * [EventON - Events Calendar](https://wordpress.org/plugins/eventon-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/eventon-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/eventon-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/eventon-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/eventon-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/eventon-lite/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [ArtemSupport](https://wordpress.org/support/users/artemsupport/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/problems-when-adding-embeds-on-event-description/#post-16795936)
 * Status: not resolved