{"id":149,"date":"2021-11-03T15:53:37","date_gmt":"2021-11-03T21:53:37","guid":{"rendered":"https:\/\/fbedolla.com\/?p=149"},"modified":"2021-11-03T15:53:38","modified_gmt":"2021-11-03T21:53:38","slug":"special-chars-field-validation","status":"publish","type":"post","link":"https:\/\/fbedolla.com\/index.php\/2021\/11\/03\/special-chars-field-validation\/","title":{"rendered":"Special Chars Field Validation"},"content":{"rendered":"\n<p>This morning I was in a demo session when someone asks &#8220;can we control the field data? sometimes the user outs a wrong character ther and &#8230;.&#8221; so I look for information with Yun Shu <a href=\"https:\/\/yzhums.com\/category\/english\/\">here<\/a> because I remembered that he made something useful for this requirement. So I read his code and make some modifications after my lunch because it was very easy.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/youtu.be\/c95LFz63CuY\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2021\/11\/fcv01-2-1024x576.jpg\" alt=\"\" class=\"wp-image-153\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2021\/11\/fcv01-2-1024x576.jpg 1024w, https:\/\/fbedolla.com\/wp-content\/uploads\/2021\/11\/fcv01-2-300x169.jpg 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2021\/11\/fcv01-2-768x432.jpg 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2021\/11\/fcv01-2-816x459.jpg 816w, https:\/\/fbedolla.com\/wp-content\/uploads\/2021\/11\/fcv01-2.jpg 1280w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption><a href=\"https:\/\/youtu.be\/c95LFz63CuY\">https:\/\/youtu.be\/c95LFz63CuY<\/a><\/figcaption><\/figure>\n\n\n\n<p>I dont understand why nobody do this before or at least I never find something like this, an standard way to control the field inputs in localizations to avoid errors<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>The code is <a href=\"https:\/\/github.com\/fbedolla\/FieldCharsValidation\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This morning I was in a demo session when someone asks &#8220;can we control the field data? sometimes the user outs a wrong character ther and &#8230;.&#8221; so I look for information with Yun Shu here because I remembered that he made something useful for this requirement. So I read his code and make some [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4,7],"tags":[],"class_list":["post-149","post","type-post","status-publish","format-standard","hentry","category-coding","category-ideas"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/fbedolla.com\/index.php\/wp-json\/wp\/v2\/posts\/149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fbedolla.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fbedolla.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fbedolla.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fbedolla.com\/index.php\/wp-json\/wp\/v2\/comments?post=149"}],"version-history":[{"count":1,"href":"https:\/\/fbedolla.com\/index.php\/wp-json\/wp\/v2\/posts\/149\/revisions"}],"predecessor-version":[{"id":154,"href":"https:\/\/fbedolla.com\/index.php\/wp-json\/wp\/v2\/posts\/149\/revisions\/154"}],"wp:attachment":[{"href":"https:\/\/fbedolla.com\/index.php\/wp-json\/wp\/v2\/media?parent=149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fbedolla.com\/index.php\/wp-json\/wp\/v2\/categories?post=149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fbedolla.com\/index.php\/wp-json\/wp\/v2\/tags?post=149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}