Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

插入代码,会导致页面无法显示 #16

Open
datangkang123 opened this issue Oct 4, 2019 · 5 comments
Open

插入代码,会导致页面无法显示 #16

datangkang123 opened this issue Oct 4, 2019 · 5 comments

Comments

@datangkang123
Copy link

博客使用这编辑器插入一些代码,比如js,会导致页面执行该js而无法显示页面。

@codingyu
Copy link
Member

codingyu commented Oct 8, 2019

具体是什么内容呢,方便发一下么?

我试着加入了js代码,没发现有执行或报错

@datangkang123
Copy link
Author

datangkang123 commented Oct 8, 2019

比如如下js代码,插入后,在文章显示页无法显示:
js代码下载

@codingyu
Copy link
Member

codingyu commented Oct 9, 2019

@datangkang123
Copy link
Author

datangkang123 commented Oct 9, 2019

@codingyu
插入php代码也有些问题,比如
` <?php

namespace App\Policies;

use Illuminate\Auth\Access\HandlesAuthorization;
use App\Models\User;

class UserPolicy
{
use HandlesAuthorization;

public function update(User $currentUser, User $user)
{
    return $currentUser->id === $user->id;
}

}`

插入后,再编辑时,会丢失代码。

@codingyu
Copy link
Member

codingyu commented Oct 9, 2019

嗯,< > 符号的问题, 找到一个方式 https://www.reinforce.cn/t/645.html ,我再看看有没有别的办法解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants