Skip to content


 is directly converted to \n by Sanitize() #216

Description

@Unicode01
func TestSanitize(t *testing.T) {
	policy := bluemonday.UGCPolicy()
	input := "Hello, 
 world 
!"
	output := policy.Sanitize(input)
	fmt.Printf("Input: %s\nOutput: %s\n", input, output)
}

the result should be:

Input: Hello, 
 world 
!
Output: Hello, 
 world 
!

but actually it was converted to:

Input: Hello, 
 world 
!
Output: Hello, 
 world 
!

Which means the 
 has been directly converted to "\n".
So It means I cant write 
 in any method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions