Title: Widget stripping html tags
Last modified: August 21, 2016

---

# Widget stripping html tags

 *  [markmur](https://wordpress.org/support/users/markmur/)
 * (@markmur)
 * [12 years ago](https://wordpress.org/support/topic/widget-stripping-html-tags/)
 * Hey Atte,
 * I have a table in my template which I’m trying to add events to but the widget
   keeps stripping any of my <tr> or <td> tags and concatenating my content as a
   single line of text. Div, p and a elements seem to work but it strips all others.
 * Here’s an example of the code in my template:
 *     ```
       <table>
       <tr>
       <th>Date</th>
       <th>Play</th>
       <th>Location</th>
       <th>Time</th>
       <th>Tickets</th>
       </tr>
       </table>
       ```
   
 * I’m trying to add a new row for each event by using the following code in the
   widget:
 *     ```
       <tr>
       <td>[start-date format='d M']</td>
       <td>[event-title]</td>
       <td>[event-venue]</td>
       <td>[start-date format="H:i"]</td>
       <td>[content]</td>
       </tr>
       ```
   
 * If it’s a matter of editing the plugin files, I can manage that but I’m not sure
   where to look.
 * Thanks in advance.
 * [https://wordpress.org/plugins/am-events/](https://wordpress.org/plugins/am-events/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Atte Moisio](https://wordpress.org/support/users/moisture/)
 * (@moisture)
 * [12 years ago](https://wordpress.org/support/topic/widget-stripping-html-tags/#post-4952996)
 * Hi,
 * The template code seems ok, and it shouldn’t strip those <tr> or <td> tags. I
   tried it and it works. Please make sure you have the following setup in the widget.
 * Display before events:
 *     ```
       <table>
         <tr>
           <th>Date</th>
           <th>Play</th>
           <th>Location</th>
           <th>Time</th>
           <th>Tickets</th>
         </tr>
       ```
   
 * Display for single event:
 *     ```
       <tr>
         <td>[start-date format='d M']</td>
         <td>[event-title]</td>
         <td>[event-venue]</td>
         <td>[start-date format="H:i"]</td>
         <td>[content]</td>
       </tr>
       ```
   
 * Display after events:
 *     ```
       </table>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Widget stripping html tags’ is closed to new replies.

 * ![](https://ps.w.org/am-events/assets/icon-256x256.png?rev=1020809)
 * [AM Events](https://wordpress.org/plugins/am-events/)
 * [Support Threads](https://wordpress.org/support/plugin/am-events/)
 * [Active Topics](https://wordpress.org/support/plugin/am-events/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/am-events/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/am-events/reviews/)

## Tags

 * [events](https://wordpress.org/support/topic-tag/events/)
 * [tables](https://wordpress.org/support/topic-tag/tables/)

 * 1 reply
 * 2 participants
 * Last reply from: [Atte Moisio](https://wordpress.org/support/users/moisture/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/widget-stripping-html-tags/#post-4952996)
 * Status: not resolved