mirror of
https://github.com/neocities/neocities.git
synced 2025-07-03 01:23:22 +02:00
parse urls for comments
This commit is contained in:
parent
0cbbc938e9
commit
2d9e6c520e
5 changed files with 9 additions and 2 deletions
|
@ -132,3 +132,7 @@ def email_not_validated?
|
|||
|
||||
current_site && current_site.parent? && !current_site.is_education && !current_site.email_confirmed && !current_site.supporter?
|
||||
end
|
||||
|
||||
def sanitize_comment(text)
|
||||
Rinku.auto_link Sanitize.fragment(text), :all, 'target="_blank" rel="nofollow"'
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue