yin parser CHANGE add validation of elements with text content
diff --git a/src/parser_yin.c b/src/parser_yin.c
index 730a3e0..c1a1db0 100644
--- a/src/parser_yin.c
+++ b/src/parser_yin.c
@@ -1197,7 +1197,7 @@
         } else {
             /* elements with text or none content */
             /* save text content, if text_content isn't set, it's just ignored */
-            /* TODO add text validation */
+            LY_CHECK_RET(yin_validate_value(ctx, Y_STR_ARG, out, out_len));
             if (text_content) {
                 if (dynamic) {
                     *text_content = lydict_insert_zc(ctx->xml_ctx.ctx, out);