Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/etblog.rb

Instance Method Summary collapse

Instance Method Details

#unxmlObject



18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/etblog.rb', line 18

def unxml
	inside_tag = false
	out = ''
	self.split('').each do |item|
		if item == '<' then
			inside_tag = true
		elsif item == '>' then 
			inside_tag = false
		elsif inside_tag == false then
			out += item
		end
	end
	return out
end