import re


def strip_html_tags(text):
    """Strip HTML tags in a string.

    :param text: String containing HTML code
    :type text: str
    :return: String without HTML tags
    :rtype: str

    :Example:

    >>> strip_html_tags('<div><p>This is a paragraph</div>')
    'This is a paragraph'

    >>> strip_html_tags('<em class="highlight">Highlighted</em> text')
    'Highlighted text'
    """
    return re.sub('<[^<]+?>', '', text)