       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'
 

          #{prevButton}
          #{nextButton}
          #{closeButton}
        </div>"

      sip._killTimers triggerData.popupInstance
      triggerData.popupInstance.data 'triggerHovered', true

      # Scroll to trigger if it isn't visible
      sip._showWhenVisible trigger, content

    _getTourOverlay: (options) ->
      overlay = $ '#smallipop-tour-overlay'

      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'
