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

Exporting code results in HTML escape characters #10

Open
tarunlalwani opened this issue Mar 11, 2023 · 0 comments
Open

Exporting code results in HTML escape characters #10

tarunlalwani opened this issue Mar 11, 2023 · 0 comments

Comments

@tarunlalwani
Copy link

image

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.support.JpaEntityInformation;
import org.springframework.data.jpa.repository.support.SimpleJpaRepository;
import org.springframework.transaction.annotation.Transactional;

import javax.persistence.EntityManager;
import javax.persistence.TypedQuery;
import java.util.concurrent.TimeUnit;

public class GenericRepositoryImpl<T> extends SimpleJpaRepository<T, Long> implements GenericRepository<T> {

    private final EntityManager entityManager;

    public GenericRepositoryImpl(JpaEntityInformation<T, ?> entityInformation, EntityManager entityManager) {
        super(entityInformation, entityManager);
        this.entityManager = entityManager;
    }

    @Override
    public Page<T> search(String searchQuery, Pageable pageable) {
        return search(searchQuery, null, pageable);
    }

As you may have noticed when we export the Markdown, the code has html escape characters. Also there is always an additional blank link at the start of the code

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

1 participant