lib/rfauxfactory.rb
def gen_html(length = 10)
      positive_int! length
      html_tag = HTML_TAGS.sample
      "<#{html_tag}>#{gen_alpha(length)}</#{html_tag}>"
    end
# Returns a random string made up of html characters.
Returns a random string made up of html characters.
Returns a random string made up of html characters .
def gen_html(length = 10)
      positive_int! length
      html_tag = HTML_TAGS.sample
      "<#{html_tag}>#{gen_alpha(length)}</#{html_tag}>"
    end
def gen_html ( length = 10 ) positive_int! length html_tag = HTML_TAGS . sample "<#{html_tag}>#{gen_alpha(length)}</#{html_tag}>" end
Returns a random string made up of html characters.
Returns a random string made up of html characters .
length