mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 15:50:13 +01: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
|