{"id":253824,"date":"2015-03-26T10:52:03","date_gmt":"2015-03-26T06:52:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=253824"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=253824","title":{"rendered":"Rock Sanitize \u2014 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0438 \u0433\u0438\u0431\u043a\u0438\u0439 \u0441\u0430\u043d\u0438\u0442\u0438\u0437\u0430\u0442\u043e\u0440"},"content":{"rendered":"<p>     \t<img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/834\/ad3\/151\/834ad31519484094addb495b8fe97e8d.gif\" align=\"right\" width=\"265\" alt=\"\u041f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e Rock Sanitize\"\/>\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442!<\/p>\n<p>  \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u044e \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043e\u0431 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043e\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u0438\u0442\u044c \u0432\u0430\u0448\u0435 \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435. \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u044d\u0442\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043b\u044f \u0441\u0430\u043d\u0438\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<p>  \u0421\u0430\u043d\u0438\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0443\u0434\u0430\u043b\u044f\u0435\u0442 (\u0438\u043b\u0438 \u044d\u043a\u0440\u0430\u043d\u0438\u0440\u0443\u0435\u0442) \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0435 \u0438\u043b\u0438 \u043d\u0435\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0438\u0437 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0432\u0432\u043e\u0434\u0430, \u043b\u0438\u0431\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442 \u0432\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0418\u0442\u0430\u043a, \u0442\u043e\u0442, \u043a\u0442\u043e \u0443\u0436\u0435 \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u043b\u0441\u044f \u0441 <a href=\"http:\/\/habrahabr.ru\/post\/253621\/\">Rock Validate<\/a> \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u044f\u0442\u043d\u043e \u0443\u0434\u0438\u0432\u043b\u0451\u043d \u043f\u043e\u0445\u043e\u0436\u0438\u043c \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u043e\u043c:<\/p>\n<pre><code class=\"php\">Sanitize::removeTags()     -&gt;lowercase()     -&gt;sanitize('&lt;b&gt;Hello World!&lt;\/b&gt;');  \/\/ output: hello world!  <\/code><\/pre>\n<p>  \u043b\u0438\u0431\u043e \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440:<\/p>\n<pre><code class=\"php\">(new Sanitize)-&gt;removeTags()-&gt;lowercase()-&gt;sanitize('&lt;b&gt;Hello World!&lt;\/b&gt;'); <\/code><\/pre>\n<p>  <\/p>\n<h3>\u041f\u0440\u0430\u0432\u0438\u043b\u0430<\/h3>\n<p>  \u041d\u0430\u0431\u043e\u0440 \u043f\u0440\u0430\u0432\u0438\u043b, \u043f\u043e\u043a\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u0439, \u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u0441 \u043b\u0451\u0433\u043a\u043e\u0441\u0442\u044c\u044e \u043a\u043e\u043c\u043f\u0435\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u0441\u0442\u043e\u043c\u0438\u0437\u0430\u0446\u0438\u0435\u0439.<\/p>\n<p>  \u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u0433\u0440\u0443\u043f\u043f\u044b \u043f\u0440\u0430\u0432\u0438\u043b:   <\/p>\n<ul>\n<li>\u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0435<\/li>\n<li>\u0447\u0438\u0441\u043b\u043e\u0432\u044b\u0435<\/li>\n<li>\u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043a \u0442\u0438\u043f\u0443<\/li>\n<\/ul>\n<p>  <a href=\"https:\/\/github.com\/romeOz\/rock-sanitize\/blob\/master\/docs\/rules.md\">\u041f\u043e\u043b\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u0440\u0430\u0432\u0438\u043b<\/a>.<\/p>\n<p>  \u041e\u0442\u043c\u0435\u0447\u0443 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437 \u043d\u0438\u0445.<\/p>\n<h6><b>call()<\/b><\/h6>\n<p>  \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 callable \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. \u041f\u0440\u0438\u043c\u0435\u0440:  <\/p>\n<pre><code class=\"php\">$s = Sanitize::call('mb_strtolower', ['UTF-8']); $s-&gt;sanitize('\u041f\u0440\u0418\u0432\u0415\u0442 \u041c\u0438\u0420!');  \/\/ output:  \u043f\u0440\u0438\u0432\u0435\u0442 \u043c\u0438\u0440! <\/code><\/pre>\n<p>  <\/p>\n<h6><b>unserialize()<\/b><\/h6>\n<p>  \u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u0441\u0442\u0440\u043e\u043a\u0430 json \u0438\u043b\u0438 php \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c, \u0430 \u0437\u0430\u0442\u0435\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0434\u0435\u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u0435\u0451.  <\/p>\n<pre><code class=\"php\">$s = Sanitize::unserialize()-&gt;removeTags()-&gt;trim() $s-&gt;sanitize('{&quot;name&quot; : &quot; &lt;b&gt; Tom  &lt;\/b&gt;     &quot;}'); \/* output: [   'name' =&gt; 'Tom' ] *\/ <\/code><\/pre>\n<p>  <\/p>\n<h3>\u0421\u0430\u043d\u0438\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u043e \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430\u043c <\/h3>\n<p>  \u0414\u043b\u044f \u0441\u0430\u043d\u0438\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u0430\u0441\u0441\u0438\u0432\u0430\/\u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043f\u043e \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043c\u0435\u0442\u043e\u0434 attributes().  <\/p>\n<pre><code class=\"php\">$input = [     'name' =&gt; '&lt;b&gt;Tom&lt;\/b&gt;',     'age' =&gt; -22 ];  $attributes = [     'name' =&gt; Sanitize::removeTags(),     'age' =&gt; Sanitize::abs() ];  Sanitize::attributes($attributes)-&gt;sanitize($input); \/* output: [   'name' =&gt; 'Tom',   'age' =&gt; 22 ] *\/ <\/code><\/pre>\n<p>  \u0412 \u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0434\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u043d\u0430 \u0432\u0441\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b, \u0442\u043e:  <\/p>\n<pre><code class=\"php\">$input = [     'name' =&gt; '&lt;b&gt;Tom&lt;\/b&gt;',     'email' =&gt; '&lt;b&gt;tom@site.com&lt;\/b&gt;', ]; Sanitize::attributes(Sanitize::removeTags())-&gt;sanitize($input); \/* output: [     'name' =&gt; 'Tom',     'email' =&gt; 'tom@site.com' ] *\/ <\/code><\/pre>\n<p>  \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432\u043a\u043b\u044e\u0447\u0451\u043d \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u044b\u0439 \u043e\u0431\u0445\u043e\u0434 \u043f\u043e \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430\u043c \u043c\u0430\u0441\u0441\u0438\u0432\u0430\/\u043e\u0431\u044a\u0435\u043a\u0442\u0430. \u041f\u0440\u0438\u043c\u0435\u0440:  <\/p>\n<pre><code class=\"php\">$input = [     'name' =&gt; '&lt;b&gt;Tom&lt;\/b&gt;',     'other' =&gt; [         'email' =&gt; '&lt;b&gt;tom@site.com&lt;\/b&gt;',         'note' =&gt; [             '&lt;b&gt;text...&lt;\/b&gt;'         ]     ] ];  Sanitize::attributes(Sanitize::removeTags())-&gt;sanitize($input); \/* output: [     'name' =&gt; 'Tom',     'other' =&gt; [         'email' =&gt; 'tom@site.com',         'note' =&gt; [             'text...'         ]      ] ] *\/ <\/code><\/pre>\n<p>  \u041c\u043e\u0436\u043d\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u044d\u0442\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435:<\/p>\n<pre><code class=\"php\">Sanitize::recursive(false)-&gt;attributes(Sanitize::removeTags()); <\/code><\/pre>\n<p>  <\/p>\n<h3>\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438<\/h3>\n<p>  \u041f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0430\u0431\u043e\u0440 \u043f\u0440\u0430\u0432\u0438\u043b \u043f\u043e \u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e\u043c\u0443 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0443, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e:  <\/p>\n<pre><code class=\"php\">$input = [     'name' =&gt; '&lt;b&gt; Tom&lt;\/b&gt;',     'email' =&gt; '&lt;b&gt;tom@site.com &lt;\/b&gt;',     'age' =&gt; -22, ];  $s = Sanitize::attributes([     'age' =&gt; Sanitize::abs(),     '*' =&gt; Sanitize::removeTags()-&gt;trim() ]); $s-&gt;sanitize($input);  \/* output: [     'name' =&gt; 'Tom',     'email' =&gt; 'tom@site.com',     'age' =&gt; 22, ] *\/ <\/code><\/pre>\n<p>  \u041c\u0435\u0442\u043a\u0443 \u00ab*\u00bb \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430 \u043b\u044e\u0431\u0443\u044e \u0434\u0440\u0443\u0433\u0443\u044e:<\/p>\n<pre><code class=\"php\">Sanitize::labelRemainder('_remainder'); <\/code><\/pre>\n<p>  <\/p>\n<blockquote><p>\u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u0430\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0432 Rock Validate.<\/p><\/blockquote>\n<p>  \u0415\u0441\u043b\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430 \u0441\u0430\u043d\u0438\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430 \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0435\u0433\u043e\u0441\u044f \u0432 \u0433\u043b\u0443\u0431\u0438\u043d\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u0430, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0446\u0435\u043f\u043e\u0447\u043a\u0443 \u0438\u0437 \u043a\u043b\u044e\u0447\u0435\u0439:  <\/p>\n<pre><code class=\"php\">$input = [     'name' =&gt; '&lt;b&gt;Tom&lt;\/b&gt;',     'other' =&gt; [         'tel' =&gt; '&lt;b&gt;777-777&lt;\/b&gt;',         'email' =&gt; '&lt;b&gt;tom@site.com&lt;\/b&gt;',         'note' =&gt; [             'first' =&gt; '&lt;b&gt; text... &lt;\/b&gt; ',         ]     ] ];  $attributes = [     'other.email' =&gt; Sanitize::removeTags(),     'other.note.first' =&gt; Sanitize::removeTags()-&gt;trim() ];  Sanitize::attributes($attributes)-&gt;sanitize($input);  \/* output: [     'name' =&gt; '&lt;b&gt;Tom&lt;\/b&gt;',     'other' =&gt; [         'tel' =&gt; '&lt;b&gt;777-777&lt;\/b&gt;',         'email' =&gt; 'tom@site.com',         'note' =&gt;[             'first' =&gt; 'text...',         ]     ] ] *\/ <\/code><\/pre>\n<p>  \u0414\u0430\u043d\u043d\u0430\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432.<\/p>\n<h3>\u041a\u0430\u0441\u0442\u043e\u043c\u0438\u0437\u0430\u0446\u0438\u044f<\/h3>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043a\u043b\u0430\u0441\u0441 \u0441 \u043f\u0440\u0430\u0432\u0438\u043b\u043e\u043c:  <\/p>\n<pre><code class=\"php\">use rock\\sanitize\\rules\\Rule  class Round extends Rule {     protected $precision = 0;      public function __construct($precision = 0)     {         $this-&gt;precision= $precision;     }      public function sanitize($input)     {         return round($input, $this-&gt;precision);     }     } <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0444\u0438\u0442:  <\/p>\n<pre><code class=\"php\">$config = [     'rules' =&gt; [         'round' =&gt; \\namespace\\to\\Round::className()     ] ]; $s = new Sanitize($config);  $s-&gt;round()-&gt;sanitize(7.4); \/\/ output: 7.0 <\/code><\/pre>\n<p>  \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043c\u043e\u0436\u043d\u043e \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0438\u0442\u044c \u043f\u043e\u0434\u043c\u0435\u043d\u0443 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u043f\u0440\u0430\u0432\u0438\u043b \u0438\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u0430\u043b\u0438\u0430\u0441\u044b \u043a \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c.<\/p>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/h3>\n<p>  <\/p>\n<pre><code class=\"bash\">composer require romeoz\/rock-sanitize:* <\/code><\/pre>\n<p>  <a href=\"https:\/\/github.com\/romeOz\/rock-sanitize\"><b>\u041f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430 github<\/b><\/a>      \t<\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/254045\/\"> http:\/\/habrahabr.ru\/post\/254045\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>     \t<img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/834\/ad3\/151\/834ad31519484094addb495b8fe97e8d.gif\" align=\"right\" width=\"265\" alt=\"\u041f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e Rock Sanitize\"\/>\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442!<\/p>\n<p>  \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u044e \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043e\u0431 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043e\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u0438\u0442\u044c \u0432\u0430\u0448\u0435 \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435. \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u044d\u0442\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043b\u044f \u0441\u0430\u043d\u0438\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<p>  \u0421\u0430\u043d\u0438\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0443\u0434\u0430\u043b\u044f\u0435\u0442 (\u0438\u043b\u0438 \u044d\u043a\u0440\u0430\u043d\u0438\u0440\u0443\u0435\u0442) \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0435 \u0438\u043b\u0438 \u043d\u0435\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0438\u0437 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0432\u0432\u043e\u0434\u0430, \u043b\u0438\u0431\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442 \u0432\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-253824","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/253824","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=253824"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/253824\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=253824"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=253824"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=253824"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}