Title: Bug in HTML Code Output
Last modified: August 31, 2016

---

# Bug in HTML Code Output

 *  [emeraldwave](https://wordpress.org/support/users/emeraldwave/)
 * (@emeraldwave)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/bug-in-html-code-output/)
 * Hi,
    I noticed my wpml flags code was in red when I look at the HTML which seems
   to be due to some bugs in the code.
 * There are 2 height tags output and extra set of opening closing commas around
   the 2nd height tag as follows:
 * <img class=”wpml_flags” src=”mydomain/path-to/flags/ar.png ” height=”12″ ” height
   =”18″ ” alt=”ar” width=”18″ />
 * This is a great plugin and it would be great if I could fix this error!
 * Thank you.
 * [https://wordpress.org/plugins/wpml-flag-in-menu-extended/](https://wordpress.org/plugins/wpml-flag-in-menu-extended/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [emeraldwave](https://wordpress.org/support/users/emeraldwave/)
 * (@emeraldwave)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/bug-in-html-code-output/#post-6994931)
 * Ok I fixed it with a temporary workaround by manually replacing the code with
   on line 168 of wpml-flag-in-menu-extended.php with this one:
 * `$new_items .= '<img width="18" height="12" ' . $i_class . ' src="' . $l['country_flag_url'].'"
   alt="' . $l['language_code'] . '" />';`

Viewing 1 replies (of 1 total)

The topic ‘Bug in HTML Code Output’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wpml-flag-in-menu-extended_b5bbc2.
   svg)
 * [WPML flag in menu Extended](https://wordpress.org/plugins/wpml-flag-in-menu-extended/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpml-flag-in-menu-extended/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpml-flag-in-menu-extended/)
 * [Active Topics](https://wordpress.org/support/plugin/wpml-flag-in-menu-extended/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpml-flag-in-menu-extended/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpml-flag-in-menu-extended/reviews/)

## Tags

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

 * 1 reply
 * 1 participant
 * Last reply from: [emeraldwave](https://wordpress.org/support/users/emeraldwave/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/bug-in-html-code-output/#post-6994931)
 * Status: not resolved