mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-29 08:27:17 +02:00
12 lines
155 B
Ruby
12 lines
155 B
Ruby
|
|
require 'htmlentities'
|
||
|
|
|
||
|
|
module HTMLEntityHelper
|
||
|
|
def entity(name)
|
||
|
|
HTMLEntities.new.decode("&#{name};")
|
||
|
|
end
|
||
|
|
|
||
|
|
def nbsp
|
||
|
|
entity('nbsp')
|
||
|
|
end
|
||
|
|
end
|