Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
aac2af5b
Commit
aac2af5b
authored
Oct 10, 2016
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HTMLEntityFilter -> HtmlEntityFilter
parent
516d869e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
lib/banzai/filter/html_entity_filter.rb
lib/banzai/filter/html_entity_filter.rb
+1
-1
lib/banzai/pipeline/single_line_pipeline.rb
lib/banzai/pipeline/single_line_pipeline.rb
+1
-1
spec/lib/banzai/filter/html_entity_filter_spec.rb
spec/lib/banzai/filter/html_entity_filter_spec.rb
+1
-1
No files found.
lib/banzai/filter/html_entity_filter.rb
View file @
aac2af5b
...
@@ -3,7 +3,7 @@ require 'erb'
...
@@ -3,7 +3,7 @@ require 'erb'
module
Banzai
module
Banzai
module
Filter
module
Filter
# Text filter that escapes these HTML entities: & " < >
# Text filter that escapes these HTML entities: & " < >
class
H
TML
EntityFilter
<
HTML
::
Pipeline
::
TextFilter
class
H
tml
EntityFilter
<
HTML
::
Pipeline
::
TextFilter
def
call
def
call
ERB
::
Util
.
html_escape
(
text
)
ERB
::
Util
.
html_escape
(
text
)
end
end
...
...
lib/banzai/pipeline/single_line_pipeline.rb
View file @
aac2af5b
...
@@ -3,7 +3,7 @@ module Banzai
...
@@ -3,7 +3,7 @@ module Banzai
class
SingleLinePipeline
<
GfmPipeline
class
SingleLinePipeline
<
GfmPipeline
def
self
.
filters
def
self
.
filters
@filters
||=
FilterArray
[
@filters
||=
FilterArray
[
Filter
::
H
TML
EntityFilter
,
Filter
::
H
tml
EntityFilter
,
Filter
::
SanitizationFilter
,
Filter
::
SanitizationFilter
,
Filter
::
EmojiFilter
,
Filter
::
EmojiFilter
,
...
...
spec/lib/banzai/filter/html_entity_filter_spec.rb
View file @
aac2af5b
require
'spec_helper'
require
'spec_helper'
describe
Banzai
::
Filter
::
H
TML
EntityFilter
,
lib:
true
do
describe
Banzai
::
Filter
::
H
tml
EntityFilter
,
lib:
true
do
include
FilterSpecHelper
include
FilterSpecHelper
let
(
:unescaped
)
{
'foo <strike attr="foo">&&&</strike>'
}
let
(
:unescaped
)
{
'foo <strike attr="foo">&&&</strike>'
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment