mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +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
|