       popupContent = content or triggerData.hint
       # If referenced content element is defined, use it's content
       if triggerOptions.referencedContent and not content
-        popupContent = $(triggerOptions.referencedContent).html() or popupContent
+        popupContent = $(triggerOptions.referencedContent).clone(true, true) or popupContent
 
       popupPosition = if @_isElementFixed trigger then 'fixed' else 'absolute'
 

      closeButton = if index is currentTourItems.length - 1 then "<a href=\"#\" class=\"smallipop-tour-close\">#{sip.labels.close}</a>" else ''
      closeIcon = "<a href=\"#\" class=\"smallipop-tour-close-icon\">&Chi;</a>"

      content = $.trim "
        <div class=\"smallipop-tour-content\">#{triggerData.hint}</div>
        #{closeIcon}
        <div class=\"smallipop-tour-footer\">
          <div class=\"smallipop-tour-progress\">

      triggerData = self.data()

      # Get content for the popup
      # If it's inline markup, create a deep copy of the hint html
      objHint = hint \
        or self.find(".#{options.infoClass}")
          .clone(true, true)
          .removeClass("#{options.infoClass}") \
        or self.attr('title')

      # Initialize each trigger, create id and bind events
      if objHint and not self.hasClass 'sipInitialized'
