ueditor 编辑 往里 粘贴从网上copy下来的文章 如何进行处理(格式化)
做一个发表文章的功能,但是从网上copy下来的文章 粘贴到编辑器里,就无法获取完整的内容,因为提交过去的时候,文章内容里面原来有的参数也会作为新的参数进行传递 ,望各位不吝赐教,谢谢。
回复讨论(解决方案)
文章内容里面原来有的参数 这指的是什么?
文章内容里面原来有的参数 这指的是什么?
就是从网上copy下来的文章自带了a标签 然后传到是后台时 产生新的参数 好像是这样子
就是从网上copy下来的文章自带了a标签 然后传到是后台时 产生新的参数 好像是这样子
你是用get方法传过去的吗?
就是从网上copy下来的文章自带了a标签 然后传到是后台时 产生新的参数 好像是这样子
你是用get方法传过去的吗? 用的ajax的post方式
就是从网上copy下来的文章自带了a标签 然后传到是后台时 产生新的参数 好像是这样子
你是用get方法传过去的吗? 用的ajax的post方式 错了 用的是 jquery ajax 的post方式提交的
可以新建一个.txt文件 把网上copy的文章先粘到.txt文件中 然后 再从.txt文件中粘到ueitor里
把你从网上copy下来的内容贴出,以及ajax传递参数到服务端代码贴出来,以供分析。
先缩小问题范围,楼主测试下怎样用jq的ajax传递一个简单带参数网址,如果成功,到PHP没有出现新参数,估计就水落石出了
可以新建一个.txt文件 把网上copy的文章先粘到.txt文件中 然后 再从.txt文件中粘到ueitor里
这样测试 倒是没问题 ,但是用户就不一定会这样 粘贴到记事本,然后在往编辑器粘贴,
先缩小问题范围,楼主测试下怎样用jq的ajax传递一个简单带参数网址,如果成功,到PHP没有出现新参数,估计就水落石出了
嗯 测试过 ,简单的参数是可以的,但是把content传过去之后,在后台打印的时候,会产生很多的新参数,所以接受content时,里面的内容是只有一半的,好像是被分割了 问题解决了,是直接通过form表单的action提交的,放弃使用了 jq 的ajax就不会把文章内容里面的
a标签带有的参数,作为参数,在产生新的参数,有更好的jq ajax 希望提供下 ,稍后贴上 源代码,谢谢 大家

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

DOS command is a command line tool used in Windows operating system, which can be used to perform various system management tasks and operations. One of the common tasks is to format the hard drive, including the C drive. Formatting the C drive is a relatively dangerous operation because it will erase all data on the C drive and reinitialize the file system. Before performing this operation, make sure you have backed up important files and have a clear understanding of the impact that formatting will have on your computer. The following is formatted in the DOS command line

The reasons why the D drive cannot be formatted include that the drive is being used by other programs or processes, there is a damaged file system on the drive, hard disk failure and permission issues. Detailed introduction: 1. The reason why the D drive cannot be formatted may be because the drive is being used by other programs or processes. In the Windows operating system, if a program is accessing the files or folders on the D drive, the system will not be able to perform the format operation. ;2. The reason why the D drive cannot be formatted may be because there is a damaged file system on the drive. The file system is used by the operating system to organize and manage files and folders on the storage device, etc.

Disc formatting refers to the process of rebuilding and clearing the disc's file system. During the disc formatting process, all data will be completely deleted, and the file system will be re-established to re-store data on the disc. Disc formatting can be used to protect data security, repair disc failures, and remove viruses. When formatting a disc, you need to back up important data, select an appropriate file system, and wait patiently for the formatting to complete.

Many times when using a computer, you will encounter too much garbage, but many users still don’t know how to format the computer. It doesn’t matter. Here is a tutorial on computer formatting for you to take a look at. How to format a computer: 1. Right-click "This PC" on the desktop and click "Manage". 2. Click "Storage" in "Computer Management" to open "Disk Management". 3. Select the hard drive you want to clean, right-click and select "Format". 4. Check "Perform Quick Format" and click "OK" to start formatting.

How to optimize the performance of time and date formatting and parsing in Java development Summary: In Java development, time and date formatting and parsing are common operations. However, due to the complexity and variety of time and date formats and the huge amount of data processed, it often becomes a performance bottleneck. This article will introduce several methods to optimize the performance of time and date formatting parsing in Java development, including using cache, reducing object creation, selecting appropriate APIs, etc. 1. Introduction Time and date formatting and parsing are very common in Java development. However, in practical applications, since

Will formatting a laptop make it faster? If you want to format your Windows laptop but want to know if it will make it faster, this article will help you know the right answer to this question. Will formatting a laptop make it faster? There are many reasons why users format their Windows laptops. But the most common reason is slow performance or speed of your laptop. Formatting a laptop will completely delete all data stored on the C drive or the hard drive partition where Windows operating system is installed. Therefore, every user will think twice before taking this step, especially when it comes to the performance of the laptop. This article will help you understand whether formatting your laptop will speed it up. Formatting your laptop helps

Nowadays, we will inevitably encounter some problems such as being unable to turn on the phone or lagging, such as system crash, but during use, mobile phones have become an indispensable part of our lives. We are often at a loss, and sometimes, there are no solutions to these problems. To help you solve cell phone problems, this article will introduce you to some methods of cell phone format recovery and restore your phone to normal operation. Back up data - protect important information, such as photos and contacts, from being lost during the formatting process. Before formatting your phone, the first thing to consider is to back up important data and files on your phone. To ensure data security, or choose to transfer files to a cloud storage service, you can back it up by connecting to a computer. Use the system's built-in recovery function - simple

How to solve 0x80070057 error: simple and effective methods and steps Introduction: In the process of using the computer, we sometimes encounter various error codes. Among them, 0x80070057 is a very common error code, which is usually related to Windows operating system. This error code can appear in different situations, such as when installing or updating the operating system, backing up or restoring files, formatting drives, etc. Although this error code is frustrating, it's not unsolvable. This article will introduce
