yq/pkg/yqlib
evnp 1be3b31bbc Don't escape HTML chars when converting to json
json.Encoder and json.Marshal implicitly use HTMLEscape to convert
>, <, &, with \u003c, \u003e, \u0026. This behavior carries over
to yq, where chars will be escaped when outputting json but not when
outputting yaml.

This changeset disables this behavior via encoder.SetEscapeHTML(false).
Unfortunately there is no equivalent option for json.Marshal, so its
single usage has been replaced with an encoder (with escaping disabled).
2021-02-11 10:58:40 +11:00
..
doc Fixing multiply doc 2021-02-11 10:58:40 +11:00
all_at_once_evaluator_test.go Moved eval function to eval interface 2021-02-11 10:58:40 +11:00
all_at_once_evaluator.go Renaming pathtree to expression 2021-02-11 10:58:40 +11:00
candidate_node.go wip 2021-02-11 10:58:40 +11:00
color_print.go Cleaning up exposed public api 2021-02-11 10:58:40 +11:00
data_tree_navigator.go Renaming pathtree to expression 2021-02-11 10:58:40 +11:00
encoder_test.go Don't escape HTML chars when converting to json 2021-02-11 10:58:40 +11:00
encoder.go Don't escape HTML chars when converting to json 2021-02-11 10:58:40 +11:00
expression_parser_test.go Renaming pathtree to expression 2021-02-11 10:58:40 +11:00
expression_parser.go Renaming pathtree to expression 2021-02-11 10:58:40 +11:00
expression_postfix.go Renaming pathtree to expression 2021-02-11 10:58:40 +11:00
expression_processing_test.go Fixing add,multiply,alternative operator precendences 2021-02-11 10:58:40 +11:00
expression_tokeniser.go Added keys operator 2021-02-11 10:58:40 +11:00
file_utils.go wip - write in place 2020-11-29 20:25:47 +11:00
lib.go Added keys operator 2021-02-11 10:58:40 +11:00
matchKeyString.go fixing exposed functions and interfaces 2021-02-11 10:58:40 +11:00
operator_add_test.go cross function fix wip 2021-02-11 10:58:40 +11:00
operator_add.go Renaming pathtree to expression 2021-02-11 10:58:40 +11:00
operator_alternative_test.go fixed test name 2020-12-22 11:47:58 +11:00
operator_alternative.go Renaming pathtree to expression 2021-02-11 10:58:40 +11:00
operator_anchors_aliases_test.go Can assign-update aliases and anchors 2021-02-11 10:58:40 +11:00
operator_anchors_aliases.go Renaming pathtree to expression 2021-02-11 10:58:40 +11:00
operator_assign_test.go Fixed updating yaml from other files 2021-02-11 10:58:40 +11:00
operator_assign.go Renaming pathtree to expression 2021-02-11 10:58:40 +11:00
operator_booleans_test.go Fixing docs 2020-11-22 13:16:54 +11:00
operator_booleans.go Renaming pathtree to expression 2021-02-11 10:58:40 +11:00
operator_collect_object_test.go Updated collect objcet doc 2021-02-11 10:58:40 +11:00
operator_collect_object.go Dont use pointer for multiply prefs (avoid nil) 2021-02-11 10:58:40 +11:00
operator_collect_test.go Added scalar addition 2021-02-11 10:58:40 +11:00
operator_collect.go Renaming pathtree to expression 2021-02-11 10:58:40 +11:00
operator_comments_test.go Fixed remove comments example 2021-02-11 10:58:40 +11:00
operator_comments.go Dont use pointer for commment prefs (avoid nil) 2021-02-11 10:58:40 +11:00
operator_create_map_test.go Fixed empty array op 2020-11-22 13:50:32 +11:00
operator_create_map.go Renaming pathtree to expression 2021-02-11 10:58:40 +11:00
operator_delete_test.go Added another delete example 2021-02-11 10:58:40 +11:00
operator_delete.go Added merge if empty 2021-02-11 10:58:40 +11:00
operator_document_index_test.go Added shorthand document index selection 2021-02-11 10:58:40 +11:00
operator_document_index.go Renaming pathtree to expression 2021-02-11 10:58:40 +11:00
operator_env_test.go Env Ops! 2021-02-11 10:58:40 +11:00
operator_env.go Dont use pointer for env prefs (avoid nil) 2021-02-11 10:58:40 +11:00
operator_equals_test.go Fixed equals operator for top level node 2021-02-11 10:58:40 +11:00
operator_equals.go Renaming pathtree to expression 2021-02-11 10:58:40 +11:00
operator_file_test.go Fixed creation of candidateNode in operators to include file metadata 2021-02-11 10:58:40 +11:00
operator_file.go Renaming pathtree to expression 2021-02-11 10:58:40 +11:00
operator_has_test.go Fixed has operator for top level node 2021-02-11 10:58:40 +11:00
operator_has.go Renaming pathtree to expression 2021-02-11 10:58:40 +11:00
operator_keys_test.go Added keys operator 2021-02-11 10:58:40 +11:00
operator_keys.go Added keys operator 2021-02-11 10:58:40 +11:00
operator_length_test.go Added pipe and length docs, fix pipe precedence 2020-12-01 17:58:07 +11:00
operator_length.go Renaming pathtree to expression 2021-02-11 10:58:40 +11:00
operator_multiply_test.go Fixed cross-function combinatorial bug 2021-02-11 10:58:40 +11:00
operator_multiply.go Fixed cross-function combinatorial bug 2021-02-11 10:58:40 +11:00
operator_path_test.go Fixed nested array splat path 2020-12-25 12:49:05 +11:00
operator_path.go Renaming pathtree to expression 2021-02-11 10:58:40 +11:00
operator_pipe_test.go Added pipe and length docs, fix pipe precedence 2020-12-01 17:58:07 +11:00
operator_pipe.go Renaming pathtree to expression 2021-02-11 10:58:40 +11:00
operator_recursive_descent_test.go Fixed creation of candidateNode in operators to include file metadata 2021-02-11 10:58:40 +11:00
operator_recursive_descent.go Dont use pointer for recursive prefs (avoid nil) 2021-02-11 10:58:40 +11:00
operator_select_test.go Fixed empty array op 2020-11-22 13:50:32 +11:00
operator_select.go Renaming pathtree to expression 2021-02-11 10:58:40 +11:00
operator_self.go Renaming pathtree to expression 2021-02-11 10:58:40 +11:00
operator_sort_keys_test.go Added sort keys operator 2020-12-01 15:06:54 +11:00
operator_sort_keys.go Renaming pathtree to expression 2021-02-11 10:58:40 +11:00
operator_split_document_test.go Split doc operator 2021-02-11 10:58:40 +11:00
operator_split_document.go Split doc operator 2021-02-11 10:58:40 +11:00
operator_strings_test.go Added split string operator 2021-02-11 10:58:40 +11:00
operator_strings.go Added split string operator 2021-02-11 10:58:40 +11:00
operator_style_test.go Can assign-update style 2021-02-11 10:58:40 +11:00
operator_style.go Renaming pathtree to expression 2021-02-11 10:58:40 +11:00
operator_tag_test.go Fixed tag operator for top level node 2021-02-11 10:58:40 +11:00
operator_tag.go Renaming pathtree to expression 2021-02-11 10:58:40 +11:00
operator_traverse_path_test.go Env Ops! 2021-02-11 10:58:40 +11:00
operator_traverse_path.go Added merge if empty 2021-02-11 10:58:40 +11:00
operator_union_test.go Fixing docs 2020-11-22 13:16:54 +11:00
operator_union.go Renaming pathtree to expression 2021-02-11 10:58:40 +11:00
operator_value_test.go moved string space test to op values test cases 2020-12-22 10:38:52 +11:00
operator_value.go Renaming pathtree to expression 2021-02-11 10:58:40 +11:00
operators_test.go Split doc operator 2021-02-11 10:58:40 +11:00
operators.go Added merge if empty 2021-02-11 10:58:40 +11:00
printer_test.go handle multiple document streams 2020-12-15 14:33:50 +11:00
printer.go Renaming pathtree to expression 2021-02-11 10:58:40 +11:00
stream_evaluator.go Split doc operator 2021-02-11 10:58:40 +11:00
utils.go wip 2021-02-11 10:58:40 +11:00
write_in_place_handler.go Cleaning up exposed public api 2021-02-11 10:58:40 +11:00