Checks if $value is html.

@param $value

@return bool
353656
public function checkHtml($value)
    {
        if (!Type::isStringLike($value)) {
            return false;
        }

        $string = "$value";

        return $string != strip_tags($string);
    }
1247203
public function isValueValid($value) {
		return $value instanceof Type\Menu || $value instanceof DataType\TextType || $value instanceof DataType\URLType;
	}
984889
public function isValid($value)
    {
        $this->setValue($value);

        $check = $this->pageRepo->findOneBy(
            [
                'pageId' => $value,
                'pageType' => $this->pageType,
                'site' => $this->site
            ]
        );

        if (empty($check)) {
            $this->error(self::PAGE_TEMPLATE);

            return false;
        }

        return true;
    }
1179696
public function isValueValid($value) {
		return $value instanceof Type\GeoShapeType || $value instanceof Type\PlaceType || $value instanceof DataType\TextType;
	}
604478
public function isValueValid($value) {
		return $value instanceof DataType\NumberType || $value instanceof Type\PriceSpecificationType || $value instanceof DataType\TextType;
	}
1362174
public function checkValue(&$value)
    {
        if (is_string($value)) {
            $value = Placeholder::replaceStringsAndComments($value);
            $value = Placeholder::removeCommentPlaceholders($value, true);
            $value = Placeholder::replaceStringPlaceholders($value, true);
            $value = trim($value);

            if ($value !== '') {
                return true;
            } else {
                $this->setIsValid(false);
            }
        } else {
            throw new \InvalidArgumentException(
                "Invalid type '" . gettype($value). "' for argument 'value' given."
            );
        }
    }
721088
public function compile($value = "")
	{
		$html = $this->compiledLabel;

		if (!empty($this->help)) {
			$html .= "<div class='help'>{$this->help}</div>";
		}

		$html .= "<div class=\"elements\">";

		$hasOptionValue = $this->hasOptionValue($this->options);

		foreach ($this->options as $k => $v) {

			$html .= "<div class=\"element\"><input type=\"{$this->type}\" {$this->compiledAttr} ";
			$html .= "name=\"" . $this->name;

			if ($this->type == "checkbox") {
				$html .= "[]";
			}

			$html .= "\" ";

			// handle options in an associative array differently than ones in a numeric array
			if ($hasOptionValue || $this->useNumericValue) {
				$html .= "value=\"{$k}\" ";
				if ($k === $value || (is_array($value) && in_array($k, $value))) {
					$html .= "checked=\"checked\"";
				}

			} else {
				$html .= "value=\"{$v}\" ";
				if ($v === $value || (is_array($value) && in_array($v, $value))) {
					$html .= "checked=\"checked\"";
				}
			}

			$html .= " /> <span>{$v}</span></div>";
		}

		$html .= "</div>";

		return $html;
	}
593835
public function isValueValid($value) {
		return $value instanceof DataType\TextType || $value instanceof Type\ThingType || $value instanceof DataType\URLType;
	}
969813
public function isValid($value)
    {
        $nameOk = parent::isValid($value);

        if (!$nameOk) {
            return false;
        }

        $check = $this->pageRepo->findOneBy(
            [
                'name' => $value,
                'pageType' => $this->pageType,
                'site' => $this->siteId
            ]
        );

        if (!empty($check)) {
            $this->error(self::PAGE_EXISTS);

            return false;
        }

        return true;
    }
159800
public static function isBooleanValue(string $value): bool
    {
        return in_array(strtolower(trim($value)), StringUtils::TRUES) || in_array(strtolower(trim($value)), StringUtils::FALSES);
    }
639181
public function isValid($value)
    {
        $this->_setValue($value);
        if (!is_string($value) && !is_int($value)) {
            $this->_error(self::INVALID);
            return false;
        }

        $format = $this->getFormat();
        if (!preg_match($format, $value)) {
            $this->_error(self::NO_MATCH);
            return false;
        }

        return true;
    }
598000
public function isValueValid($value) {
		return $value instanceof Type\CreativeWork || $value instanceof Type\Product || $value instanceof DataType\URLType;
	}
253515
public function isValueValid($value) {
		return $value instanceof Type\AlignmentObject || $value instanceof Type\Course || $value instanceof DataType\TextType;
	}
505905
public function isValueValid($value) {
		return $value instanceof Type\DataFeedItemType || $value instanceof DataType\TextType || $value instanceof Type\ThingType;
	}
259411
public static function isSlug($value)
    {
        if ((false !== \strstr($value, '--'))
            || (!preg_match('@^[0-9a-z\-]+$@', $value))
            || (\preg_match('@^-|-$@', $value))
        ) {
            return false;
        }

        return true;
    }
786816
public function isValueValidType($value)
    {
        switch ($this->getType()) {
            case self::TYPE_BOOLEAN:
                $isValid = is_bool($value);
                break;
            case self::TYPE_DATE:
            case self::TYPE_DATETIME:
                $isValid = is_object($value) and get_class($value) == 'DateTime';
                break;
            case self::TYPE_NUMBER:
                $isValid = is_numeric($value);
                break;
            case self::TYPE_STRING:
                $isValid = is_string($value);
                break;
            default:
                $isValid = false;
        }

        return $isValid;
    }
857229
public function isValid($value)
    {
        $this->_setValue($value);

        if (!is_string($value)) {
            return false;
        }

        return @preg_match(self::LASTMOD_REGEX, $value) == 1;
    }