brewersfan1976

html_end_tag_by_start_tag.rb

Sep 25th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.25 KB | None | 0 0
  1. def htmlEndTagByStartTag(startTag)
  2.     x = 1
  3.     string = "</"
  4.    
  5.     while (startTag[x] != ' ' and startTag[x] != '>')
  6.           string = string + startTag[x]
  7.           x = x + 1
  8.     end
  9.    
  10.     string = string + ">"
  11.    
  12.     return string
  13. end
Advertisement
Add Comment
Please, Sign In to add comment