search
Homephp教程php手册Laravel-HtmlBuilder

用于动态创建HTML实体以及针对HTML的一些处理 方法: 1.public string entities(string $value) 将字符串格式化为html实体 用法: 2.public string decode(string $value) 将HTML实体格式为字符串 用法: test ) ;?> 3.public string script(string $url, array

用于动态创建HTML实体以及针对HTML的一些处理
方法:

1.public string entities(string $value)
将字符串格式化为html实体
用法:

2.public string decode(string $value)
将HTML实体格式为字符串
用法:test

‘) ;?>

3.public string script(string $url, array $attributes = array(), bool $secure = null)
插入script文件
用法:
第一个参数为引入文件地址 默认起始路径在public文件夹下
第二个参数可选 为属性数组
第三个参数是时候是安全传输 即https

4.public string style(string $url, array $attributes = array(), bool $secure = null)
动态引入css文件
用法:

5.public string image(string $url, string $alt = null, array $attributes = array(), bool $secure = null)
对应Laravel-HtmlBuilder标签
用法:
多了一个alt属性参数

6.public string link(string $url, string $title = null, array $attributes = array(), bool $secure = null)
创建a标记 不是 用法:

7.public string secureLink(string $url, string $title = null, array $attributes = array())
创建https a超链接
用法:

8.public string linkAsset(string $url, string $title = null, array $attributes = array(), bool $secure = null)
创建瞄点链接
用法:

9.public string linkSecureAsset(string $url, string $title = null, array $attributes = array())
https瞄点
用法:

10.public string linkRoute(string $name, string $title = null, array $parameters = array(), array $attributes = array())
创建一个指向已定义路由的链接 第三个参数是参数组
用法:

11.public string linkAction(string $action, string $title = null, array $parameters = array(), array $attributes = array())
创建一个链接 指向控制器的action
用法:

12.public string mailto(string $email, string $title = null, array $attributes = array())
email链接
用法:

13.public string email(string $email)
字面翻译是混淆输出防止email被嗅探 输出结果是直接输出email 不带链接 不知道什么意思
用法:

14.public string ol(array $list, array $attributes = array())
将数组序列化成一个ol

15.public string ul(array $list, array $attributes = array())
将数组序列化成一个ul

16.public string attributes(array $attributes)
动态输出html属性组

17.public string obfuscate(string $value)
混淆字符串 难道是防止采集?

HtmlBuilder就这么多 提供对html一些对象动态编程与输出的能力

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!