Title: Markup errors
Last modified: April 26, 2018

---

# Markup errors

 *  Resolved [Arnd030](https://wordpress.org/support/users/arnd030/)
 * (@arnd030)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/markup-errors/)
 * Thanks for Shariff.
 * With the latest version, I encounter this issue: The plugin seems to mess up 
   the HTML, see for example the one below (validate HTML), or;
 * [https://kosmetik-im-townhouse.de/petra-sandmann/](https://kosmetik-im-townhouse.de/petra-sandmann/)
   
   [https://validator.w3.org/nu/?doc=https%3A%2F%2Fkosmetik-im-townhouse.de%2Fpetra-sandmann%2F](https://validator.w3.org/nu/?doc=https%3A%2F%2Fkosmetik-im-townhouse.de%2Fpetra-sandmann%2F)
 * There are additional ” marks.
 * I am not sure if this might be my fault and there’s something wrong with my theme.
   
   I tried to use the widget or direct inclusion (beneath article), Same problem.
 * Can you help? Thanks!
 * Arnd
    -  This topic was modified 7 years, 11 months ago by [Arnd030](https://wordpress.org/support/users/arnd030/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmarkup-errors%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Ov3rfly](https://wordpress.org/support/users/ov3rfly/)
 * (@ov3rfly)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/markup-errors/#post-10225129)
 * The problem appears to be in shariff.php:1132 plugin version 4.4.2
 *     ```
       $output .= '<span class="shariff-text"';
       if ( isset( $atts['theme'] ) && 'white' === $atts['theme'] ) {
          $output .= ' style="color:' . $main_color;
       }
       $output .= '">' . $button_text . '</span>&nbsp;';
       ```
   
 * Suggested fix, untested:
 *     ```
       $output .= '<span class="shariff-text"';
       if ( isset( $atts['theme'] ) && 'white' === $atts['theme'] ) {
          $output .= ' style="color:' . $main_color . '"'; // Add quote here
       }
       $output .= '>' . $button_text . '</span>&nbsp;'; // Remove quote here
       ```
   
 *  Thread Starter [Arnd030](https://wordpress.org/support/users/arnd030/)
 * (@arnd030)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/markup-errors/#post-10225306)
 * Excellent! I think you’re right, thank you very much.
    I patched shariff.php 
   as you suggested and the HTML errors are gone.
 * So, it’s a bug? Am I the first to notice it?
 *  Plugin Author [Jan-Peter](https://wordpress.org/support/users/starguide/)
 * (@starguide)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/markup-errors/#post-10230328)
 * Has been fixed in 4.4.3.
 *  Thread Starter [Arnd030](https://wordpress.org/support/users/arnd030/)
 * (@arnd030)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/markup-errors/#post-10232078)
 * Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Markup errors’ is closed to new replies.

 * ![](https://ps.w.org/shariff/assets/icon.svg?rev=2006307)
 * [Shariff Wrapper](https://wordpress.org/plugins/shariff/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shariff/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shariff/)
 * [Active Topics](https://wordpress.org/support/plugin/shariff/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shariff/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shariff/reviews/)

## Tags

 * [html](https://wordpress.org/support/topic-tag/html/)
 * [markup](https://wordpress.org/support/topic-tag/markup/)

 * 4 replies
 * 3 participants
 * Last reply from: [Arnd030](https://wordpress.org/support/users/arnd030/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/markup-errors/#post-10232078)
 * Status: resolved