YAML filter should escape sequences before passing to subfilters.

Created by: nvloff

Given the following YML file:

html: "Visit <a href=\"http://www.google.com\">Google</a>"

And the YAML filter configured with HTML subfilter like this:

#v1                                                                                                                                                                                                                                                                                      
extractIsolatedStrings.b=false                                                  
extractAllPairs.b=true                                                          
exceptions=                                                                     
useKeyAsName.b=true                                                             
useFullKeyPath.b=true                                                           
useCodeFinder.b=false                                                           
escapeNonAscii.b=false                                                          
wrap.b=true                                                                     
codeFinderRules.count.i=0                                                       
codeFinderRules.sample=%s, %d, {1}, \n, \r, \t, {{var}} etc.                    
codeFinderRules.useAllRulesWhenTesting.b=true                                   
subfilter=okf_html

Produces the following result .out file when using the test tool in Rainbow:

html: "Visit <a href=\"\\"http://www.google.com\\"\">Google</a>"

The translatable entities look correct in the test tool:

Visit <1>Google</1>

Am I missing some config option?

I tried playing around with custom okf_html configs with various quote mode parameters, but the output is always broken.

Assignee Loading
Time tracking Loading